Loading SAS data
Using the haven package to load SAS data: Reading supports both sas7bdat and xpt files.
IQRloadSASdata( data_file, as.data.frame = TRUE, noLabels = TRUE, replaceComma = TRUE )
Path to sas7bdat data file.
Logical. If TRUE a data.frame is returned.
Logical. If TRUE label attributes are removed
If TRUE the "," is exchanged for " " - otherwise not
data frame Variable labels are stored in the "label" attribute of each variable. It is not printed on the console, but the RStudio viewer will show it.
Some arguments from haven::read_sas are disabled on purpose as there are till bugs with them ... for now only use it for importing SAS files :)
Removing "," in character columns by default (can be switched off)