Skip to contents

One row per distribution. The url column is the download URL if present, otherwise the access URL. The kind column says what each one is: "file", "service" (WMS, WFS, APIs, feeds), "page" (a web page), "none" (no usable URL, e.g. a localhost placeholder) or "unknown".

Usage

de_distributions(id, lang = "en", files_only = FALSE)

Arguments

id

Dataset id as shown in search results.

lang

Preferred language.

files_only

Keep only distributions whose kind is "file".

Value

A data frame with one row per distribution: id, title, format, media_type, byte_size, checksum, checksum_algorithm, license, modified, download_url, access_url, url and kind. An empty data frame when the dataset has none.

Examples

if (FALSE) { # interactive()
files <- de_distributions("6689f1686e4bd9bc98ed011b", files_only = TRUE)
files[, c("title", "format", "kind")]
}