Movatterモバイル変換


[0]ホーム

URL:


IndonesiAPIs

License: MITCRAN statusCRAN downloads (monthly)CRAN downloads (total)DOI


TheIndonesiAPIs package provides a unified interface toaccess open data from theWorld Bank API,Nager.Date API, and theREST CountriesAPI, with a focus onIndonesia. It allowsusers to retrieve up-to-date or historical information on topics such aseconomic indicators, population statistics, national holidays, and basicgeopolitical details.

In addition to API-access functions, the package includes a curatedcollection of open datasets related toIndonesia. Thesedatasets cover a wide range of topics including consumer prices, povertyprobability, food prices by region, tourism destinations, and minimumwage statistics.

Installation

You can install theIndonesiAPIs package from CRAN withthe following R function:

install.packages("IndonesiAPIs")

Usage

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

library(IndonesiAPIs)

IndonesiAPIs Functions

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

Dataset Suffixes

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

Datasets Included inIndonesiAPIs

In addition to API access functions,IndonesiAPIs offersa curated collection of open datasets focused onIndonesia. These preloaded datasets cover a wide rangeof topics including consumer prices, poverty probability, food prices byregion, tourism destinations, and minimum wage statistics. Below aresome featured examples:

Example Code:

# Load the packagelibrary(IndonesiAPIs)# Retrieves essential information about Indonesiaget_country_info_idn()# Get Indonesia's Population (Total) from World Bankget_indonesia_population()# Load a datasetdata(DKIJakarta_tbl_df)# Shows six rows of the datasethead(DKIJakarta_tbl_df)# Display the structure of the datasetstr(DKIJakarta_tbl_df)# Shows the whole datasetView(DKIJakarta_tbl_df)

[8]ページ先頭

©2009-2025 Movatter.jp