span_series_request: Break up a long request into multiple API calls

View source: R/span_request.R

span_series_requestR Documentation

Break up a long request into multiple API calls

Description

Break up a long request into multiple API calls

Usage

span_series_request(start_year, end_year, year_limit, query_fn, ...)

Arguments

start_year, end_year

numeric 4-digit years. While optional, they are strongly recommended. If one is provided, the other is mandatory. end_year must be greater than start_year

year_limit

positive integer

query_fn

a function or closure that takes two arguments, start_year and end_year, and returns a query (see purrr::partial())

...

additional arguments to pass to bls_request()

Value

a list of API responses (what comes back from bls_re)

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

Other blsR-utils: bls-api-key, data_as_table(), data_as_tidy_table(), merge_tables(), merge_tidy_tables(), reduce_spanned_responses(), span_request_queries(), tidy_periods(), tidy_table_as_zoo()


blsR documentation built on July 9, 2023, 5:29 p.m.