sp_load_table: Load a statnipokladna table from a CSV file

View source: R/tables.R

sp_load_tableR Documentation

Load a statnipokladna table from a CSV file

Description

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

Usage

sp_load_table(path, ico = NULL)

Arguments

path

path to a CSV file, as output by sp_get_table_file().

ico

Organisation ID to filter by, if supplied.

Value

a tibble. See help for sp_get_table() for a key to the columns.

See Also

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

Examples

## Not run: 
ds <- sp_get_dataset("rozv", 2018, 12)
tf <- sp_get_table_file("balance-sheet", ds)
sp_load_table(tf)

## End(Not run)

petrbouchal/statnipokladna documentation built on April 10, 2024, 3:09 p.m.