laus_emp: Download state empoyment numbers from the Local Area...

Description Usage Arguments Details Value Examples

View source: R/laus.R

Description

laus_emp downloads state empoyment numbers from the Local Area Unemployment Statistics (LAUS) database.

Usage

1
laus_emp(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 empoyment levels data from the LAUS database. The default setting is to download empoyment 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_emp(Sys.getenv("BLS_KEY"), "all", 2010, 2015, "U")

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