MyNixOS website logo
Description

Access to Spanish Household Income Distribution Atlas Data.

Provides access to granular socioeconomic indicators from the Spanish Statistical Office (INE) Household Income Distribution Atlas. The package downloads and processes data from a companion 'GitHub' repository (<https://github.com/pablogguz/ineAtlas.data/>) which contains processed versions of the official INE Atlas data. Functions are provided to fetch data at multiple geographic levels (municipalities, districts, and census tracts), including income indicators, demographic characteristics, and inequality metrics. The data repository is updated every year when new releases are published by INE.

ineAtlas

Lifecycle: experimental CRAN status Downloads R-CMD-check GitHub release CodeFactor

The goal of ineAtlas is to provide easy access to granular socioeconomic indicators from the Spanish Statistical Office (INE) Atlas de Distribución de Renta de los Hogares (Household Income Distribution Atlas). This dataset combines administrative tax data with population statistics to provide detailed information about the income distribution and related socioeconomic indicators at the municipal, district, and census tract levels.

Data structure

The data is organized into several categories and is available at three geographic levels:

  • Municipality (Municipio)
  • District (Distrito)
  • Census tract (Sección censal)

Available datasets

DatasetDescription
IncomeIncome indicators including net/gross (equivalised) income per capita
Income sourcesIncome indicators by source (wages, pensions, benefits, etc.)
DemographicsPopulation characteristics including age structure and household composition
Distribution by sexIncome distribution indicators disaggregated by sex
Distribution by sex and ageIncome distribution indicators by sex and age categories
Distribution by sex, age and nationalityIncome distribution indicators by sex and nationality status
Inequality indicatorsInequality metrics including Gini coefficient and P80/P20 ratio

All the data is stored in the accompanying ineAtlas.data repository. You can find the data dictionary and more information about the data structure at https://pablogguz.github.io/ineAtlas.data/.

Installation

You can install the released version of ineAtlas from CRAN with:

install.packages("ineAtlas")

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

# install.packages("pak")
pak::pak("pablogguz/ineAtlas")

Example

Here's a basic example of fetching census tract-level income data:

library(ineAtlas)

# Get municipality-level income data
income_data <- get_atlas("income", "tract")

# View the first few rows
head(income_data)

Contributing

Contributions are welcome! Please feel free to submit a pull request. For major changes, please open an issue first to discuss what you would like to change.

References

Spanish Statistical Office (2024). Household Income Distribution Atlas. Retrieved from https://www.ine.es/en/experimental/atlas/experimental_atlas_en.htm/ [Accessed October 29, 2024]

Latest data release: October 29, 2024

Author

Pablo García Guzmán
EBRD.

Metadata

Version

0.1.3

License

Unknown

Platforms (77)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows