od_table_save {STATcubeR} | R Documentation |
Saves/load opendata datasets via tar archives
Description
od_table_save()
creates a tar archive containing all relevant data from the
OGD portal. od_table_local()
parses the tar archive and recreates the
od_table
object.
Usage
od_table_save(x, file = NULL)
od_table_local(file)
Arguments
x |
an object of class |
file |
An archive file file for the dataset. For |
Value
for
od_table_save()
: the path to the generated filefor
od_table_local()
: the OGD identifier
Examples
x <- od_table("OGD_krebs_ext_KREBS_1")
# save dataset as an archive
archive <- file.path(tempdir(), "table.tar.gz")
od_table_save(x, archive)
# read the saved archive
x2 <- od_table_local(archive)
# cleanup
file.remove(archive)
[Package STATcubeR version 1.0.0 Index]