fetch_viola_records {finna} | R Documentation |
Fetch Records by Year Ranges from Finna API (Including NA Dates)
Description
This function fetches records from the Finna API in chunks divided by year ranges, handling missing date values.
Usage
fetch_viola_records(
base_query = "*",
base_filters = c("collection:\"VIO\""),
year_ranges = list(c(0, as.numeric(format(Sys.Date(), "%Y")))),
include_na = TRUE,
limit_per_query = 1e+05,
total_limit = Inf,
delay_after_query = 5
)
Arguments
base_query |
The base query string, defaults to "*". |
base_filters |
A character vector of filters for the search, e.g., |
year_ranges |
A list of numeric vectors specifying year ranges, e.g., |
include_na |
Whether to include records with missing |
limit_per_query |
Maximum number of records to fetch per query. Default is 100000. |
total_limit |
Maximum number of records to fetch overall. Default is |
delay_after_query |
Delay in seconds between queries. Default is 5. |
Value
A tibble containing all fetched records.
[Package finna version 0.1.1 Index]