Skip to contents

Accepts all arguments of de_search(). Total hits are in attr(x, "count").

Usage

de_search_datasets(q = NULL, ..., lang = "en")

Arguments

q

Free-text query.

...

Passed to de_search().

lang

Language for titles/descriptions.

Value

A data frame with one row per dataset: id, title, description, country, catalog, publisher, issued, modified, formats, n_distributions, is_hvd, quality_score, landing_page and portal_url. The total number of hits is in attr(x, "count").

Examples

if (FALSE) { # interactive()
ds <- de_search_datasets("air quality", country = "pt", format = "CSV", limit = 5)
ds[, c("id", "title", "formats")]
attr(ds, "count")
}