View source: R/get_mexico_unemployment.R
get_mexico_unemployment | R Documentation |
Retrieves Mexico's total unemployment rate as a percentage of the total labor force from 2010 to 2022 using the World Bank Open Data API.
get_mexico_unemployment()
The function sends a GET request to the World Bank API. If the request fails or returns a status
other than 200, the function returns NULL
with an informative message.
A tibble with four columns: 'indicator' (name of the indicator), 'country' (country name), 'year' (year of observation), and 'value' (unemployment rate as a numeric percentage).
This function requires an internet connection.
GET, fromJSON, as_tibble
## Not run:
get_mexico_unemployment()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.