download_microdata: Download school census microdata

Description Usage Arguments Details Value Examples

View source: R/functions.R

Description

Download school census microdata

Usage

1
download_microdata(year = 2019, method = "wget")

Arguments

year

numeric, at the moment works with 2018 and 2019 data

method

character, default is "wget". Other options: "internal", "libcurl", "curl"

Details

This function works only with 2019 and 2018 data.

Other years can be downloaded in: http://inep.gov.br/microdados

This package works fine with 2019 data, and at least partially with 2015 data. Other years were not tested till now.

Value

.zip file with all microdata, which must be unzipped

Examples

1
2
3
4
download_microdata()
download_microdata(year=2018)

# for a more complete view, see ?insert_labels

travitzki/BRschoolData documentation built on Dec. 31, 2020, 8:45 a.m.