inedemogR provides tidy access to demographic data from the Spanish National Statistics Institute (INE), specifically its “fenómenos demográficos” domain: population, births, and deaths. Data is retrieved live via the official ineapir API wrapper and tidied into long/wide data frames, with optional spatial integration via mapSpain and sf.
A stable version of this package is available on CRAN and can be installed directly from there:
install.packages("inedemogR")The latest development version of the package can also be loaded directly from GitHub:
# install.packages("pak")
pak::pak("jrcarob/inedemogR_package")or
# install.packages("devtools")
devtools::install_github("jrcarob/inedemogR_package")To learn more about how the package works, read through the following articles: