laus_get_areacode: Acquire the area code used in the series id for observations...

View source: R/laus_get_areacode.R

laus_get_areacodeR Documentation

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

Description

Gathers the area 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_areacode(Location_Name)

Arguments

Location_Name

A string or vector of the different cities, states or metropolitan statistical areas you want LAUS data from

Details

type help_laus_areacodes() to get a list of all of the area names that area associated to an area code in the LAUS data

Value

returns a string or vector representing area codes

Examples

library(blsAPI)
laus_get_areacode(Location_Name = c("Florida", "California", 
                    "Charlotte County, FL", "Fresno County, CA"))


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