bls_download: Download data from the Bureau of Labor Statistics

Description Usage Arguments Details Examples

View source: R/utils.R

Description

bls_downloads remotely downloads data for a given set of series IDs from the Bureau of Labor Statistics (BLS).

Usage

1
bls_download(seriesid, start_year, end_year, bls_key)

Arguments

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.

Details

This function acts as a wrapper for the function bls_api from the package blscrapeR. Please see documentation for bls_api.

Examples

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"))

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