Learn R Programming

IndonesiAPIs (version 0.1.1)

get_indonesia_unemployment: Get Indonesia's Unemployment Rate from World Bank

Description

Retrieves Indonesia's Unemployment, total ( for the years 2010 to 2022 using the World Bank Open Data API. The indicator used is SL.UEM.TOTL.ZS.

Usage

get_indonesia_unemployment()

Arguments

Value

A tibble with:

  • indicator: Indicator name.

  • country: Country name ("Indonesia").

  • year: Year (integer).

  • value: Unemployment rate (numeric).

  • value_label: Formatted unemployment rate (e.g., "5.2

Returns NULL if API request fails or data is unavailable.

Details

If the API request fails for any reason (network issue, timeout, invalid HTTP status, or malformed JSON), the function returns NULL with an informative message.

Examples

Run this code
# \donttest{
get_indonesia_unemployment()
# }

Run the code above in your browser using DataLab