Skip to contents

This function downloads demographic datasets from the National Population and Dwelling Census (CNPV) of 2018.

Usage

download_demographic(dataset)

Arguments

dataset

character with the demographic dataset name. Please use list_datasets("demographic", "EN") or list_datasets("demographic", "ES") to check available datasets.

Value

data.frame object with downloaded data.

Examples

house_under_15 <- download_demographic("DANE_CNPVH_2018_1HD")
#> Original data is retrieved from the National Administrative Department
#> of Statistics (Departamento Administrativo Nacional de Estadística -
#> DANE).
#> Reformatted by package authors.
#> Stored by Universidad de Los Andes under the Epiverse TRACE iniative.
head(house_under_15)
#>   codigo_departamento departamento  area                      condicion
#> 1                  00         <NA> total                  total_hogares
#> 2                  00         <NA> total hogares_con_menores_de_15_anos
#> 3                  00         <NA> total       total_menores_de_15_anos
#> 4                  05    Antioquia total                  total_hogares
#> 5                  05    Antioquia total hogares_con_menores_de_15_anos
#> 6                  05    Antioquia total       total_menores_de_15_anos
#>      total
#> 1 14243223
#> 2  6216640
#> 3  9932653
#> 4  1983566
#> 5   778216
#> 6  1173475