Learn R Programming

statnipokladna (version 0.7.4)

sp_get_dataset_doc: Get dataset documentation

Description

Downloads XLS file with dataset documentation, or opens link to this file in browser.

Usage

sp_get_dataset_doc(dataset_id, dest_dir = NULL, download = TRUE)

Value

(invisible) path to file if download = TRUE, URL otherwise

Arguments

dataset_id

dataset ID. See sp_datasets.

dest_dir

character. Directory in which downloaded files will be stored. If left unset, will use the statnipokladna.dest_dir option if the option is set, and tempdir() otherwise. Will be created if it does not exist.

download

Whether to download (the default) or open link in browser.

See Also

Other Utilities: sp_get_codelist_viewer()

Examples

Run this code
if (FALSE) {
sp_get_dataset_doc("finm")
}

Run the code above in your browser using DataLab