Download and extract census data from IBGE

get_censo(state, datatype = "tabular", mesh = "setores",
  savedir = NULL)

Arguments

state

a string defining the the federation unitie to download data

datatype

a string defining the kind of data to download: "tabular" (default) or "geo"

mesh

a string defining the mesh level to download: "setores" (default) or "municipios"

savedir

a string defining the directory to save the data. It's not mandatory. See details.

Value

IBGE census tabular or geo data

Details

get_censo will download and extract IBGE data, keeping files in directory informed on savedir argument. If save dir is not informed, will store them in the temporary folder

Examples

# NOT RUN {
get_censo("rr")
clean_tmp()
# }