README.md

ubigeo (R package)

DOI

Installation

This package is not yet in CRAN, but you can install it by using devtools

devtools::install_github("jmcastagnetto/ubigeo")

Note

If you rather use a CSV, JSON or RDS file, these are (in Spanish) at: https://github.com/jmcastagnetto/ubigeo-peru-aumentado

Motivation

In Perú there is an official geographical location code for each Department, Province and District, but there exists de facto two widely use but different codification systems, one from INEI (Instituto Nacional de Estadística e Informática), and the other from RENIEC (REgistro Nacional de Identifación y Estado Civil).

This package contains datasets with the mappings from one to the other, at the level of Departments, Provinces and Districts. The datasets also include other useful information such as the classification in Regions and Macroregions (according to INEI and MINSA), the ISO-3166-2 and FIPS codes for regions, the surface area (in Km2), latitude, longitude and altitude (meters over sea level), and miscellaenous indicators as described below:

Also included is the INEI codification for small population centers (CCPP in the peruvian nomenclature)

Data structure

For Departments

| Field | Description | | -------------------- | ------------- | | inei | UBIGEO (INEI) | | reniec | UBIGEO (RENIEC) | | department | Name of the Department | | iso_3166_2 | ISO-3166-2 code for the region | | fips | FIPS code for the region | | surface | Surface in Km2 | | pop_density_2020 | Population Density (2020) | | altitude | Altitude in meters above sea level | | latitude | Latitude(South) | | longitude | Longitude (West) | | state_density_index | State Density Index | | food_vulnerability_index | Food Insecurity Vulnerability Index | | hdi_2019 | Human Development Index | | pct_pobreza_total | Percentage of population in poverty | | pct_pobreza_extrema | Percentage of population in extreme poverty |

For Provinces

| Field | Description | | -------------------- | ------------- | | inei | UBIGEO (INEI) | | reniec | UBIGEO (RENIEC) | | department | Name of the Department | | province | Name of the Province | | region | Name of the Region | | macroregion_inei | Macroregion for the region (INEI) | | macroregion_minsa | Macroregion for the region (MINSA) | | iso_3166_2 | ISO-3166-2 code for the region | | fips | FIPS code for the region | | surface | Surface in Km2 | | pop_density_2020 | Population Density (2020) | | altitude | Altitude in meters above sea level | | latitude | Latitude(South) | | longitude | Longitude (West) | | state_density_index | State Density Index | | food_vulnerability_index | Food Insecurity Vulnerability Index | | hdi_2019 | Human Development Index | | pct_pobreza_total | Percentage of population in poverty | | pct_pobreza_extrema | Percentage of population in extreme poverty |

For Districts

| Field | Description | | -------------------- | ------------- | | inei | UBIGEO (INEI) | | reniec | UBIGEO (RENIEC) | | department | Name of the Department | | province | Name of the Province | | district | Name of the District | | region | Name of the Region | | macroregion_inei | Macroregion for the region (INEI) | | macroregion_minsa | Macroregion for the region (MINSA) | | iso_3166_2 | ISO-3166-2 code for the region | | fips | FIPS code for the region | | surface | Surface in Km2 | | pop_density_2020 | Population Density (2020) | | altitude | Altitude in meters above sea level | | latitude | Latitude(South) | | longitude | Longitude (West) | | food_vulnerability_index | Food Insecurity Vulnerability Index | | hdi_2019 | Human Development Index | | pct_pobreza_total | Percentage of population in poverty | | pct_pobreza_extrema | Percentage of population in extreme poverty |

For Small Population Centers (Centros Poblados = CCPP)

| Field | Description | | -------------------- | ------------- | | inei_cpp | CPP UBIGEO (INEI) | | inei_district | District BIGEO (RENIEC) | | department | Name of the Department | | province | Name of the Province | | district | Name of the District | | ccpp | Name of the CCPP | | type | Type of CPP (Urban or Rural) | | latitude | Latitude(South) | | longitude | Longitude (West) |

LICENSE: MIT



jmcastagnetto/ubigeo documentation built on Dec. 21, 2021, 1:12 a.m.