R/sp_indicators.R
sp_indicators.Rd
Get state, cities and regions demographics from Sao Paulo.
sp_indicators(year, place, variable)
year | vector with years you want to get the data |
---|---|
place | code, according to place data. |
variable | variable code according to variable data. |
a data frame with place code, place name, parent place,variable code, variable name, period that the data is available, unity, year, and variable name.
all codes for the places and indicators (variables) are available at `sp_place` dataset. You can provide more than one year, place or variable. If you want either all years, all places or all variables, you can put "0" to one, and only one, of the three arguments.
sp_indicators(2016:2017,place=1,variable=55)#> codigo_localidade localidade nome_localidade_pai codigo_variavel #> 1 1 Adamantina Região de Governo de Adamantina 55 #> 2 1 Adamantina Região de Governo de Adamantina 55 #> variavel periodo unidade pop ano #> 1 População 1980-2018 Não possui unidade 33882 2016 #> 2 População 1980-2018 Não possui unidade 33885 2017