span_request_queries: Generate multiple queries that don't exceed a year limit

View source: R/span_request.R

span_request_queriesR Documentation

Generate multiple queries that don't exceed a year limit

Description

Generate multiple queries that don't exceed a year limit

Usage

span_request_queries(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())

Value

a list of query objects in reverse chronological order

See Also

Other blsR-queries: query_all_surveys(), query_latest_observation(), query_n_series(), query_popular_series(), query_series(), query_survey_info()

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


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