ArgentinAPI

The ArgentinAPI package provides a unified interface to access open data from the ArgentinaDatos API and the REST Countries API, with a focus on Argentina. It allows users to easily retrieve up-to-date information on exchange rates, inflation, political figures, national holidays, and country-level indicators relevant to Argentina.

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

ArgentinAPI is designed to support research, teaching, and data analysis focused on Argentina by integrating publicly available APIs and high-quality datasets into a single, easy-to-use R package.

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)

ColombiAPI Functions

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()

# 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)