View source: R/od_table_save.R
od_table_save | R Documentation |
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.
od_table_save(x, file = NULL)
od_table_local(file)
x |
an object of class |
file |
An archive file file for the dataset. For |
for od_table_save()
: the path to the generated file
for od_table_local()
: the OGD identifier
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.