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.

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.

Examples

if (FALSE) { # \dontrun{
ds <- sp_get_dataset("rozv", 2018, 12)
tf <- sp_get_table_file("balance-sheet", ds)
sp_load_table(tf)
} # }