Import SAS data into R, with survey design variables the same as those in NAMCS 2019 PUF.
Source:R/import_sas_namcs.R
import_sas_namcs2019puf.Rd
Import SAS data into R, with survey design variables the same as those in NAMCS 2019 PUF.
Arguments
- sas_data
SAS survey data file
- sas_formats_data
SAS formats data file (produced with
PROC FORMAT
with theCNTLOUT
option)- r_out
name of a new R data file
- label
name of the survey
Examples
if (FALSE) {
import_sas_namcs2019puf(sas_data = "namcs2019_sas.sas7bdat"
, sas_formats_data = "namcs_formats_dataset.sas7bdat"
, r_out = "namcs_2019_puf.rds"
, label = "NAMCS 2019 PUF")
import_sas_namcs2019puf(sas_data = "ed2020_sas.sas7bdat"
, sas_formats_data = "ed_formats_dataset.sas7bdat"
, r_out = "ed_2020_puf.rds"
, label = "ED 2020 PUF")
}