Description Usage Arguments Details Value Examples
laus_unemp
downloads state unemployment numbers from the Local Area Unemployment
Statistics (LAUS) database.
1 | laus_unemp(bls_key, states = "all", start_year, end_year, adjustment)
|
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 |
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. |
This function downloads and cleans pre-packaged state unemployment levels data from the LAUS database. The default setting is to download unemployment 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.
Cleaned data frame of LAUS data.
1 | laus_unemp(Sys.getenv("BLS_KEY"), "all", 2010, 2015, "U")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.