View source: R/loadDataADaMSDTM.R
loadDataADaMSDTM | R Documentation |
Load data set from SAS format into R data.frames.
loadDataADaMSDTM( files, convertToDate = FALSE, dateVars = "DTC$", verbose = TRUE, encoding = "UTF-8", ... )
files |
Character vector with path to ADaM or SDTM file(s). Currently only import of files with extension: 'sas7bdat' or 'xpt' are supported. |
convertToDate |
logical, if TRUE columns with date/time are converted to
|
dateVars |
vector of columns in |
verbose |
logical, if TRUE (by default) progress messages are printed during execution. |
encoding |
String with encoding, only used if |
... |
Additional parameters for the |
While creating the R data.frames, if date/time variables are present,
those are converted into to R date/time class
(see convertToDateTime
) function.
The labels of the ADaM/SDTM data sets are attached as attributes of the R data.frame.
List of data.frame with data of each ADAM file (if not empty),
with special attributes 'labelVars': named vector with label of the variables.
Each data.frame contains an additional column called 'dataset' specifying the name of the
files
it was read from.
Laure Cougnaud
## Not run: dataFromSAS7bdat <- loadDataADaMSDTM(files = "ae.sas7bdat") attr(dataFromSAS7bdat, "labelVars") # column labels dataFromXpt <- loadDataADaMSDTM(files = c("ae.xpt", "dm.xpt")) attr(dataFromXpt, "labelVars") # column labels ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.