The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
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[@]dogado.de.

MexicoDataAPI

The MexicoDataAPI package provides a unified interface to access open data from the World Bank API and the REST Countries API, with a focus on Mexico. It allows users to retrieve up-to-date information on topics such as economic indicators, population figures, literacy rates, and unemployment levels, as well as basic geopolitical information.

In addition to API-access functions, the package includes a set of curated datasets related to Mexico. These cover areas such as air quality monitoring, state-level income surveys, postal abbreviations, election results, and regional forest classification.

MexicoDataAPI is intended to support users working with data related to Mexico by integrating international API sources with selected datasets from national and academic origins, in a single R package.

Installation

You can install the MexicoDataAPI package from CRAN with the following R function:


install.packages("MexicoDataAPI")

Usage

After installation, load the package and start exploring and using its functions and datasets.


library(MexicoDataAPI)

MexicoDataAPI Functions

Dataset Suffixes

Each dataset in MexicoDataAPI is labeled with a suffix to indicate its structure and type:

Datasets Included in MexicoDataAPI

In addition to API access functions, MexicoDataAPI provides several preloaded datasets related to Mexico’s environment, demographics, and public data. Here are some featured examples:

Example Code:


# Load the package
library(MexicoDataAPI)

# Selected, essential information about Mexico
get_country_info("Mexico")

# Get Mexico's Population (Total) from World Bank
get_mexico_population()

# Load a dataset
data("mex_income_2016_tbl_df")

# Shows six rows of the dataset
head(mex_income_2016_tbl_df)

# Display the structure of the dataset
str(mex_income_2016_tbl_df)

# Shows the whole dataset

View(mex_income_2016_tbl_df)

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.
Health stats visible at Monitor.