ArgentinAPI

The ArgentinAPI package provides a comprehensive and unified interface to access open data about Argentina from multiple public RESTful APIs, including ArgentinaDatos API, REST Countries API, and World Bank API. Through these sources, users can easily retrieve information on exchange rates, inflation, political figures, national holidays, economic indicators, and general country-level statistics.

In addition to API-access functions, the package includes a collection of curated datasets covering diverse domains such as economic indicators, biodiversity, agriculture, human rights, genetic data, and consumer prices.

Installation

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


install.packages("ArgentinAPI")

Usage

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


library(ArgentinAPI)

ArgentinAPI Functions

Below is a list of the main functions included in the ArgentinAPI package:

Some of the ArgentinAPI Datasets

The naming convention helps you easily understand the structure of each dataset:

Example Code:


# Load the package
library(ArgentinAPI)

# Selected, essential information about Argentina
get_country_info_ar()

# List of presidential events in Argentina 
get_presidential_events()

# Load a dataset
data("corn_nitrogen_df")

# Shows six rows of the dataset
head(corn_nitrogen_df)

# Display the structure of the dataset
str(corn_nitrogen_df)

# Shows the whole dataset

View(corn_nitrogen_df)