get_series_table {blsR}R Documentation

Retrieve a single time series from BLS API and return a tibble

Description

Retrieve a single time series from BLS API and return a tibble

Usage

get_series_table(
  series_id,
  api_key,
  start_year = NA,
  end_year = NA,
  year_limit = 20,
  parse_values = TRUE,
  ...
)

Arguments

series_id

a BLS time-series ID

api_key

a mandatory API key, available from https://data.bls.gov/registrationEngine/

start_year

optional numeric 4-digit year

end_year

optional numeric 4-digit year

year_limit

optional number of years to paginate request by. Defaults to 20, the API request cap when using API key. Requests made without an API key are capped to 10 years.

parse_values

optional boolean. If set to true (default) it will attempt to parse the contents of value and cast numeric strings as numeric values. If set to false it will keep return a value column of strings.

...

additional parameters to pass to bls_request

Value

a tibble of observations

See Also

Other blsR-requests: bls_request(), get_all_surveys(), get_latest_observation(), get_n_series_table(), get_n_series(), get_popular_series(), get_series_tables(), get_series(), get_survey_info()

Examples

## Not run: 
get_series_table('LNS14000001',2005,2006)

## End(Not run)


[Package blsR version 0.3.0 Index]