The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
The goal of sidrar is to provide direct access to the data of IBGE’s (Brazilian Institute of Geography and Statistics) SIDRA API within the R environment in an easy and flexible way. SIDRA is the acronym to “Sistema IBGE de Recuperação Automática” and it is the system where IBGE makes aggregate data from their researches available.
Install the release version from CRAN:
install.packages("sidrar")
or the development version from github
# install.packages("devtools")
::install_github("rpradosiqueira/sidrar") devtools
For the time being, the “sidrar” package contains only three functions:
get_sidra It recovers data from the given table
according to the parameters
info_sidra It allows you to check what parametersfor a table
are available
search_sidra It searches which tables have a particular in their names word
Let’s assume that we want the IPCA (Índice de Preços ao Consumidor Amplo) for the city of Campo Grande/MS. However, we want to recover only the overall percentage rate in the last 12 months. To do this simply execute:
library(sidrar)
get_sidra(x = 1419,
variable = 63,
period = c(last = "12"),
geo = "City",
geo.filter = 5002704,
classific = "c315",
category = list(7169),
header = FALSE,
format = 3)
To more examples, see the vignette “Introduction to sidrar”.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.