Description Usage Arguments Details Examples
bls_downloads
remotely downloads data for a given set of series IDs from the Bureau of
Labor Statistics (BLS).
1 | bls_download(seriesid, start_year, end_year, bls_key)
|
seriesid |
Character vector. Vector of series IDs for BLS data. Limit of 50 strings. |
start_year |
Numeric. |
end_year |
Numeric. |
bls_key |
Character. BLS API key. Required parameter. |
This function acts as a wrapper for the function bls_api
from the package
blscrapeR
. Please see documentation for bls_api
.
1 2 3 4 5 6 | # National series for seasonally adjusted private sector employment and earnings
series_str = ces_seriesid(adjustment = c("S"), industries = c("05000000"),
data_types = c("01", "03"))
bls_df = bls_download(seriesid = series_str, start_year = 2006, end_year = 2010,
bls_key = Sys.getenv("BLS_KEY"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.