inedemogR: A Tidy Access to Spanish INE Demographic Data

demography
R
CRAN
Published

September 7, 2026

The R package

Introduction

The R package 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.

Installation

inedemogR is on CRAN. Install the released version with:

install.packages("inedemogR")

Alternatively, you can install the development version of inedemogR from GitHub with:

# install.packages("devtools")
pak::pak('jrcarob/inedemogR_package')
or 
devtools::install_github("jrcarob/inedemogR_package")

Citation

If you use this package for your research, please cite:

Caro-Barrera, J. R. (2026). inedemogR: Tidy Access to Spanish INE Demographic Data. R package version 0.1.0. https://CRAN.R-project.org/package=inedemogR