get_series_tables {blsR}R Documentation

Retrieve multiple time series in one API request and return a list of tibbles

Description

Retrieve multiple time series in one API request and return a list of tibbles

Usage

get_series_tables(
  series_ids,
  api_key,
  start_year = NA,
  end_year = NA,
  year_limit = 20,
  parse_values = TRUE,
  ...
)

Arguments

series_ids

a list or character vector of BLS time-series IDs. If the list items are named then the names will be used in the returned list

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 query_n_series

Value

a list of tables

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_table(), get_series(), get_survey_info()

Examples

## Not run: 
get_series_tables(
  list(uer.men ='LNS14000001', uer.women = 'LNS14000002')),
  'your-api-key-here'
)
get_series_tables(
  list(uer.men ='LNS14000001', uer.women = 'LNS14000002'),
  'your-api-key-here',
  2005,2006
)

## End(Not run)


[Package blsR version 0.3.0 Index]