The ColombiAPI
package provides a seamless interface to access diverse public data about Colombia
through the API-Colombia
, a RESTful API.
The package enables users to explore various aspects of Colombia
, including general information, geography, and cultural insights.
It includes five API-related functions to retrieve data on topics such as Colombia
's general information, airports, departments, regions, and presidents.
Additionally, ColombiAPI
offers a built-in function to view the datasets available within the package.
The package also includes curated datasets covering Bogota air stations, business and holiday dates, public schools, Colombian coffee exports,
cannabis licenses, Medellin rainfall, and malls in Bogota, making it a comprehensive tool for exploring Colombia
's data.
You can install the ColombiAPI
package from CRAN with the following R function:
install.packages("ColombiAPI")
After installation, load the package and start exploring and using its functions and datasets.
get_Colombia_info() Get Information About Colombia
get_airports_list() Get the List of Airports in Colombia
get_departments_list() Get the List of Departments in Colombia
get_presidents_list() Get the List of Presidents of Colombia
get_regions_list() Get the List of Regions in Colombia
view_datasets() List of Datasets in the ColombiAPI Package
The naming convention helps you easily understand the structure of each dataset:
_df: Data frame
.
_Date: Date object
.
_tbl_df: Tibble (a modern version of a data frame)
.
Bogota_airstations_df: Bogota Air Stations Coordinates
Bogota_holidays_Date: Bogota Holidays Dates
Tulua_Public_Schools_tbl_df: Tulua Public Schools Information
# Load the package
library(ColombiAPI)
# List colombian presidents
get_presidents_list()
# Shows Colombia's general information
get_Colombia_info()
# Load a dataset
data("Bogota_airstations_df")
# View the dataset
head(Bogota_airstations_df)
# Load another dataset
data("Tulua_Public_Schools_tbl_df")
# Display the structure of the tibble
str(Tulua_Public_Schools_tbl_df)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.