read_population {censobr} | R Documentation |
Download microdata of population records from Brazil's census
Description
Download microdata of population records from Brazil's census. Data collected in the sample component of the questionnaire.
Usage
read_population(
year = 2010,
columns = NULL,
add_labels = NULL,
as_data_frame = FALSE,
showProgress = TRUE,
cache = TRUE
)
Arguments
year |
Numeric. Year of reference in the format |
columns |
String. A vector of column names to keep. The rest of the
columns are not read. Defaults to |
add_labels |
Character. Whether the function should add labels to the
responses of categorical variables. When |
as_data_frame |
Logical. When |
showProgress |
Logical. Defaults to |
cache |
Logical. Whether the function should read the data cached
locally, which is much faster. Defaults to |
Value
An arrow Dataset
or a "data.frame"
object.
See Also
Other Microdata:
read_emigration()
,
read_families()
,
read_households()
,
read_mortality()
Examples
# return data as arrow Dataset
df <- read_population(year = 2010,
showProgress = FALSE)