get_mexico_unemployment: Get Mexico's Unemployment Rate from World Bank

View source: R/get_mexico_unemployment.R

get_mexico_unemploymentR 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

GET, fromJSON, as_tibble

Examples

## Not run: 
get_mexico_unemployment()

## End(Not run)


MexicoDataAPI documentation built on Aug. 8, 2025, 6:26 p.m.