dpwritedata | R Documentation |
Write data of resource to file
dpwritedata(x, ..., write_codelists = TRUE)
## S3 method for class 'datapackage'
dpwritedata(
x,
resourcename,
data,
writer = "guess",
...,
write_codelists = TRUE
)
## S3 method for class 'dataresource'
dpwritedata(
x,
data,
datapackage = dpgetdatapackage(x),
writer = "guess",
...,
write_codelists = TRUE
)
x |
the Data Package or Data Resource to which the data is to be written to. |
... |
additional arguments are passed on to the writer function. |
write_codelists |
write both the data set |
resourcename |
name of the Data Resource in the Data Package to which the data needs to be written. |
data |
|
writer |
the writer to use to write the data. This should be either a
function accepting the Data Package, name of the Data Resource, the data and
the |
datapackage |
the Data Package to which the data needs to be written. |
When writer = "guess"
the function will try to guess which writer to
use based on the format
and mediatype
of the Data Resource.
The function doesn't return anything. It is called for it's side effect of creating files in the directory of the Data Package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.