Learn R Programming

microdadosBrasil (version 0.0.0.9000)

download_sourceData: Download brazilian microdata.

Description

Download brazilian microdata.

Usage

download_sourceData(dataset, i, unzip = T, root_path = NULL,
  replace = FALSE)

Arguments

dataset

Standardized name of brazilian public microdadata. See available datasets with get_available_datasets()

i

Period(year/quarter) to download, use get_available_periods(dataset) to see available periods

unzip

(optional) logical. Should files be unzipped after download?

root_path

(optional) a path to the directory where dataset should be downloaded

replace

(optional) logical. Should an existing version of the data be replaced?

Examples

Run this code
# NOT RUN {
download_sourceData("PNAD", 2014, unzip = T, root_path = "F:/Datasets/PNAD", replace = T)

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab