(Internal) Takes care of basic SAS file reading
Usage
read_basic_sas(
x,
wd,
rawfiles,
catfile = paste0(wd, "formats.sas7bcat"),
imps = NULL,
omits = NULL
)
Arguments
- x
The cleaned name of the data table (SAS7BDAT).
- wd
The working directory for these files
- rawfiles
The data frame connecting raw filenames to cleaned ones.
- catfile
The location of the sas7bcat file
- imps
A named list to be passed to use_imp(). Each item's name represents the non-imputed variable name; the item itself represents the related imputed variable.
- omits
Character vector of columns to omit