pnad_read | R Documentation |
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.
pnad_read(hh_data, hh_input, prs_data, prs_input, vars)
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. |
A tibble
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.