bulast: Request data from the Bureau of Labor Statistics API

Description Usage Arguments Value Examples

Description

Request data from the Bureau of Labor Statistics API

Usage

1
2
bulast(seriesid, startyear = NULL, endyear = NULL, registrationKey = NULL,
  catalog = NULL, calculations = NULL, annualaverage = NULL)

Arguments

seriesid

character vector of series identifiers

startyear

integer start year for the data

endyear

integer end year for the data (maximum of 20 years returned)

registrationKey

BLS API registration key, required for V2 API. Freely available from here: http://data.bls.gov/registrationEngine/

catalog

boolean include catalog data (currently not returned); requires registrationKey

calculations

boolean include calculations data; requires registrationKey

annualaverage

boolean include annual average ("M13") data; requires registrationKey

Value

Returns a list with names status (character), responseTime (integer), message (list of character), Results (data.table). Results has a date field that marks the end of the month.

Examples

1
2
r <- bulast(c('LAUCN040010000000005', 'LAUCN040010000000006'))
r$Results

fcocquemas/bulast documentation built on May 16, 2019, 12:08 p.m.