Retrieves the URL/downloads the file containing the documentation of the dataset, in the required format.

czso_get_dataset_doc(
  dataset_id,
  action = c("return", "open", "download"),
  destfile = NULL,
  format = c("html", "pdf", "word")
)

Arguments

dataset_id

Dataset ID

action

Whether to return URL (the default), download the file, or open the URL in the default web browser.

destfile

Where to save the file. Only used if if action = download.

format

What file format to access: html (the default), pdf, or word.

Value

if action = download, the path to the downloaded file; file URL otherwise.

Details

The document to which this functions provides access contains methodological background on the specified dataset and is identified by the schema field in the list returned by czso_get_dataset_metadata().

See also

Examples

# \donttest{
czso_get_dataset_doc("110080")
#> [1] "https://www.czso.cz/documents/62353418/198619406/110080-23schema052323.json"
# }