write_meta_template: Write csv file with metadata template

Description Usage Arguments Value Examples

View source: R/write_meta_template.R

Description

Write csv file with metadata template

Usage

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
)

Arguments

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.

Value

Writes csv file(s).

Examples

1
2
write_meta_template(iris, "~/iris")
write_meta_template(iris, "~/iris", embedded = FALSE)

pmcelhany/metacsv documentation built on June 3, 2021, 1:36 a.m.