get_mexico_unemployment {MexicoDataAPI} | R Documentation |
Get Mexico's Unemployment Rate from World Bank
Description
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.
Usage
get_mexico_unemployment()
Details
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.
Value
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).
Note
This function requires an internet connection.
See Also
Examples
## Not run:
get_mexico_unemployment()
## End(Not run)
[Package MexicoDataAPI version 0.1.0 Index]