convert_to_script function

Convert SDTM QC code from a .Rmd file to .R script