Movatterモバイル変換


[0]ホーム

URL:


Skip to contents

IndonesiAPIs

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


TheIndonesiAPIs package provides a unified interface to access open data from theWorld Bank API,Nager.Date API, and theREST Countries API, with a focus onIndonesia. It allows users to retrieve up-to-date or historical information on topics such as economic indicators, population statistics, national holidays, and basic geopolitical details.

In addition to API-access functions, the package includes a curated collection of open datasets related toIndonesia. These datasets cover a wide range of topics including consumer prices, poverty probability, food prices by region, tourism destinations, and minimum wage statistics.

Installation

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

install.packages("IndonesiAPIs")

Usage

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

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:

  • _df: A standard data frame.

  • _tbl_df: A tibble data frame object.

Datasets Included in IndonesiAPIs

In addition to API access functions,IndonesiAPIs offers a curated collection of open datasets focused onIndonesia. These preloaded datasets cover a wide range of topics including consumer prices, poverty probability, food prices by region, tourism destinations, and minimum wage statistics. Below are some featured examples:

  • Bali_tbl_df: A tibble containing food price data in Bali, Indonesia.

  • indonesia_minwage_tbl_df: A tibble containing monthly minimum wage or Upah Minimum Regional (UMR) data in Indonesian Rupiah (IDR) across various regions of Indonesia from 1997 to 2025.

  • DKIJakarta_tbl_df: A tibble containing food price data in DKI Jakarta, Indonesia.

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)

Links

License

Citation

Developers

  • Renzo Caceres Rossi
    Author, maintainer

[8]ページ先頭

©2009-2025 Movatter.jp