Learn R Programming

statnipokladna (version 0.7.2)

sp_load_codelist: Load codelist into a tibble from XML file

Description

This is normally called inside sp_get_codelist() but can be used separately if finer-grained control of intermediate outputs is needed, e.g. in a targets workflow.

Usage

sp_load_codelist(path, n = NULL)

Value

a tibble

Arguments

path

Path to a file as returned by sp_get_codelist_file()

n

Number of rows to return. Default (NULL) means all. Useful for quickly inspecting a codelist.

See Also

Other Detailed workflow: sp_get_codelist_file(), sp_get_codelist_url(), sp_get_dataset_url(), sp_get_table_file(), sp_load_table()

Examples

Run this code
if (FALSE) {
cf <- sp_get_codelist_file("druhuj")
sp_load_codelist(cf)
}

Run the code above in your browser using DataLab