Movatterモバイル変換


[0]ホーム

URL:


PeruAPIs

License: MIT

ThePeruAPIs package provides a unified interface toaccess open data from theWorld Bank API,Nager.Date API, and theREST CountriesAPI, with a focus onPeru. It allows users toretrieve up-to-date or historical information on topics such as economicindicators, demographics, national holidays, and key geopoliticaldetails.

In addition to API-access functions, the package includes a curatedcollection of open datasets related toPeru. Thesedatasets cover a wide range of topics including administrativedivisions, electoral data, demographics, biodiversity and educationalclassifications.

Installation

You can install thePeruAPIs package from CRAN with thefollowing R function:

install.packages("PeruAPIs")

Usage

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

library(PeruAPIs)

Functions for PeruAPIs

Dataset Suffixes

Each dataset inPeruAPIs is labeled with asuffix to indicate its structure and type:

Datasets Included inPeruAPIs

In addition to API access functions,PeruAPIs provides acurated collection of open datasets focused onPeru.

Below are some featured examples:

Example Code:

# Load the packagelibrary(PeruAPIs)# Retrieves essential information about Peruget_country_info_pe()# Get Peru's Population (Total) from World Bankget_peru_population()# Load a datasetdata(birds_peru_tbl_df)# Shows six rows of the datasethead(birds_peru_tbl_df)# Display the structure of the datasetstr(birds_peru_tbl_df)# Shows the whole datasetView(birds_peru_tbl_df)# Display all the datasets within PeruAPIs packageview_datasets_PeruAPIs()

[8]ページ先頭

©2009-2025 Movatter.jp