laus_get_measure: Acquire the measure code used in the series id for...

View source: R/laus_get_measure.R

laus_get_measureR Documentation

Acquire the measure code used in the series id for observations in Labor Area Unemployment Statistics (LAUS) data

Description

Gathers the measure code used in the laus_get_data function to acquire a data frame using the blsAPI function that request data through the U.S. Bureau of Labor Statistics API. The laus_get_areacode function is called by the laus_get_data function not the user.

Usage

laus_get_measure(measure)

Arguments

measure

a string containing the desired measure. Exs: unemployment rate, labor force, employment, etc.

Details

See <https://download.bls.gov/pub/time.series/la/la.measure> to see the format of the strings used in the measure param found in the measure_text column

Value

returns a string representing a measure code

Examples

library(blsAPI)
laus_get_measure("unemployment rate")

mikeasilva/blsAPI documentation built on May 11, 2023, 4:57 a.m.