Skip to contents

Import SAS data into R, with survey design variables the same as those in NSLTCP RCC 2018 PUF.

Usage

import_sas_rcc2018puf(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_rcc2018puf(sas_data = "rcc2018puf.sas7bdat"
, sas_formats_data = "rcc_formats_dataset.sas7bdat"
, r_out = "rcc_2018_puf.rds"
, label = "RCC 2018 PUF")
}