Import SAS data into R, with survey design variables the same as those in NSLTCP RCC SU 2018 PUF.
Usage
import_sas_rccsu2018puf(sas_data, sas_formats_data, r_out, label = "")
Arguments
- sas_data
SAS survey data file
- sas_formats_data
SAS formats data file (produced with PROC FORMAT
with the CNTLOUT
option)
- r_out
name of a new R data file
- label
name of the survey
Examples
if (FALSE) {
import_sas_rccsu2018puf(sas_data = "final2018rcc_su_puf.sas7bdat"
, sas_formats_data = "suformats_dataset.sas7bdat"
, r_out = "rccsu2018puf.rds"
, label = "RCC SU 2018 PUF")
}