R/export_sas_code.R

#' Writes the SAS import code to external file
#'
#' \code{export_sas_code} writes a data.frame of SAS code to external .sas file.
#'
#' @param dataset a data.frame of SAS code
#' @param file location to write file to. Must include .sas extension.
#'
#' @export
#'

sas_code_export <- function(dataset, file){
  write.table(dataset,
  						file = file,
  						append = FALSE,
  						quote = FALSE,
  						row.names = FALSE,
  						col.names = FALSE)
}
MattKelliher-Gibson/r2sas documentation built on May 7, 2019, 4:34 p.m.