get_n_series_table {blsR}R Documentation

Retrieve multiple time series in one API request and return a single tibble

Description

Retrieve multiple time series in one API request and return a single tibble

Usage

get_n_series_table(
  series_ids,
  api_key,
  start_year = NA,
  end_year = NA,
  tidy = FALSE,
  parse_values = TRUE,
  ...
)

Arguments

series_ids

a named list 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

tidy

optional boolean. Return will use tidy_periods() if true

parse_values

optional boolean. If set to true (default) it will attempt to parse the values of requested data series and cast numeric strings as numeric values. If set to false it will retain them as strings.

...

additional parameters to pass to get_series_tables

Value

a tibble of multiple merged time series

See Also

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

Examples

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

## End(Not run)


[Package blsR version 0.3.0 Index]