View source: R/dp_save_as_datapackage.R
dp_save_as_datapackage | R Documentation |
Save a dataset as a Data Package
dp_save_as_datapackage(
data,
path,
name,
categories_type = c("regular", "resource")
)
data |
the data.frame with the data to save |
path |
directory in which to create the datapackage |
name |
name of the Data Resource. When omitted a name is generated. |
categories_type |
how should categories be stored. See
|
This function is a wrapper function around new_datapackage
,
dp_generate_dataresource
and dp_write_data
. These
functions are called with the default arguments. This allows for a quick way
to save a data set with any necessary data needed to read the dataset.
Does not return anything. Called for the side effect of creating a directory and creating a number of files in this directory. Together these form a complete Data Package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.