Skip to contents

Import SAS data into R, with survey design variables the same as those in NAMCS 2019 PUF.

Usage

import_sas_namcs2019puf(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

Value

(Nothing.)

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")
}