download_sourceData: Download brazilian microdata.

Description Usage Arguments Examples

View source: R/download_functions.R

Description

Download brazilian microdata.

Usage

1
2
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

1
2
3
4
5
6
## Not run: 

download_sourceData("PNAD", 2014, unzip = T, root_path = "F:/Datasets/PNAD", replace = T)


## End(Not run)

lucasmation/microdadosBrasil documentation built on Dec. 6, 2019, 7:14 p.m.