Description Usage Arguments Value Examples
View source: R/write_meta_template.R
Write csv file with metadata template
1 2 3 4 5 6 7 | write_meta_template(
dData,
file,
embedded = TRUE,
gen_attributes = gen_attrib$attribute_name,
var_attributes = var_attrib$attribute_name
)
|
dData |
Data frame to be written as csv file with metadata template |
file |
Base name of output csv file |
embedded |
Are the metada added to the csv file above the data or is the metadata written into a seperate file. If the data are embedded, the output file name is "file_withMeta.csv". If the data are not embedded, the data file is named "file.csv" and the metadate file is named "file_meta.csv". Default embedded = TRUE |
gen_attributes |
Vector of general attributes for metadata template. Default is gen_format_2 from the internal list of format options. Can be any user provided character vector that does not contain any commas. |
var_attributes |
Vector of variable attributes for metadata template. Default is gen_format_2 from the internal list of format options. Can be any user provided character vector that does not contain any commas. |
Writes csv file(s).
1 2 | write_meta_template(iris, "~/iris")
write_meta_template(iris, "~/iris", embedded = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.