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.

ChileDataAPI

The ChileDataAPI package provides a unified interface to access open data from the FINDIC API and the REST Countries API, with a focus on Chile. It allows users to easily retrieve up-to-date time series data on financial indicators such as the UF, UTM, Dollar, Euro, Yen, Copper price per pound, Bitcoin, and the IPSA index, as well as international metadata on countries via standardized API calls.

All API-based functions return data as tidy tibble objects, making them ready for immediate use in data pipelines. The financial indicator functions, such as get_chile_dollar(), get_chile_uf(), and get_chile_bitcoin(), provide real-time series of daily or monthly values, with each row representing a timestamped observation. This makes ChileDataAPI a valuable tool for working with economic time series data in a reproducible manner.

Installation

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


install.packages("ChileDataAPI")

Usage

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


library(ChileDataAPI)

ChileDataAPI Functions

Dataset Suffixes

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

Datasets Included in ChileDataAPI

In addition to API access functions, ChileDataAPI provides several curated datasets offering valuable insights into Chile’s recent history, population health, territorial divisions, electoral processes, and seismic activity. Here are some featured examples:

Example Code:


# Load the package

library(ChileDataAPI)

# Selected, essential information about Chile

get_country_info("Chile")

# Provides the exchange rate of the U.S. Dollar in CLP

get_chile_dollar()

# Load a dataset

data("census_chile_2017_df")

# Shows six rows of the dataset

head(census_chile_2017_df)

# Display the structure of the dataset

str(census_chile_2017_df)

# Shows the whole dataset

View(census_chile_2017_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.