laus_labor_force: Download state labor force numbers from the Local Area...

Description Usage Arguments Details Value Examples

View source: R/laus.R

Description

laus_labor_force downloads state labor force numbers from the Local Area Unemployment Statistics (LAUS) database.

Usage

1
laus_labor_force(bls_key, states = "all", start_year, end_year, adjustment)

Arguments

bls_key

BLS API key for the user. See vignette. #' @param states Character vector. All states ("all"), Washington D.C. ("DC"), or list of state codes. See vignette and laus_codes_list object.

start_year

Year to start data download.

end_year

Year to end data download.

adjustment

Character vector. Seasonal adjustment ("S") or not ("U") or both.

Details

This function downloads and cleans pre-packaged state labor force levels data from the LAUS database. The default setting is to download labor force levels for all states in the U.S. excluding D.C. The user can shorten or lengthen the list of states but is constrained by the BLS 50 series limit.

Value

Cleaned data frame of LAUS data.

Examples

1
laus_labor_force(Sys.getenv("BLS_KEY"), "all", 2010, 2015, "U")

davidsovich/blsr documentation built on March 23, 2021, 5:31 a.m.