pnad_read: Import the data from PNAD using SAS input

View source: R/pnad_read.R

pnad_readR Documentation

Import the data from PNAD using SAS input

Description

The pnad_read() function is responsible for read the data using the input file. The variables needed to use the pnad_design() function will always be imported automatically, even if not selected.

Usage

pnad_read(hh_data, hh_input, prs_data, prs_input, vars)

Arguments

hh_data

Household data file.

hh_input

Household input SAS file.

prs_data

Person data file.

prs_input

Person input SAS file.

vars

Selected variables.

Value

A tibble

Examples

## Not run: 
# Import household data
pnad2008_dom <- pnad_read(hh_data = "DOM2008.txt", hh_input = "input DOM2008.txt")

# Import household and person data, but just mandatory vars and V8005.
pnad2008 <- pnad_read(hh_data = "DOM2008.txt", hh_input = "input DOM2008.txt",
                      prs_data = "PES2008.TXT", prs_input = "input PES2008.txt",
                      vars = c("V8005"))

## End(Not run)

hhmacedo/dnads documentation built on March 10, 2023, 11:35 p.m.