pnad_get: Download PNAD files and read them.

View source: R/pnad_get.R

pnad_getR Documentation

Download PNAD files and read them.

Description

Download PNAD files and read them.

Usage

pnad_get(year, design = TRUE, vars = NULL, hh_only = FALSE)

Arguments

year

A year must be provided.

design

TRUE if you want a survey object, FALSE if you want a dataframe.

vars

Selected variables

hh_only

If TRUE, will skip person data, using just household data.

Value

A survey object or a tibble.

Examples

## Not run: 
# Download PNAD 2015
pnad2015 <- pnad_get(year = 2015)

# Select just the variable V8005 for PNAD 2008
pnad2008 <- pnad_get(year = 2008, vars = c("V8005"))

## End(Not run)


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