Fetch many datasets with the scroll API
Usage
de_fetch_datasets(
q = NULL,
...,
max_results = 1000,
page_size = 500,
lang = "en",
raw = FALSE
)Arguments
- q
Free-text query.
- ...
Passed to
de_search().- max_results
Stop after this many records.
- page_size
Records per request (max 1000).
- lang
Language for titles/descriptions.
- raw
Return the raw list of records instead of a data frame.
Value
A data frame with the columns of de_search_datasets(), one row per dataset, or with
raw = TRUE a list of the raw records. At most max_results either way.
Examples
if (FALSE) { # interactive()
ds <- de_fetch_datasets(country = "pt", max_results = 2500, page_size = 1000) # three requests
nrow(ds)
}