sp_load_codelist: Load codelist into a tibble from XML file

Description Usage Arguments Value See Also Examples

View source: R/codelists.R

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

1

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.

Value

a tibble

See Also

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

Examples

1
2
3
4
5
## Not run: 
cf <- sp_get_codelist_file("druhuj")
sp_load_codelist(cf)

## End(Not run)

statnipokladna documentation built on May 26, 2021, 1:06 a.m.