View source: R/template_table_attributes.R
template_table_attributes | R Documentation |
Describes columns of a data table (classes, units, datetime formats, missing value codes).
template_table_attributes(
path,
data.path = path,
data.table = NULL,
write.file = TRUE,
x = NULL
)
path |
(character) Path to the metadata template directory. |
data.path |
(character) Path to the data directory. |
data.table |
(character) Table name. If more than one, then supply as a
vector of character strings (e.g.
|
write.file |
(logical; optional) Whether to write the template file. |
x |
(named list; optional) Alternative input to
|
Character encoding of metadata extracted directly from the tables are
converted to UTF-8 via enc2utf8()
.
attributes_* |
Columns:
|
custom_units |
Describes non-standard units used in a data table attribute template. Columns:
|
## Not run:
# Set working directory
setwd("/Users/me/Documents/data_packages/pkg_260")
# For 2 tables
template_table_attributes(
path = './metadata_templates',
data.path = './data_objects',
data.table = c('decomp.csv', 'nitrogen.csv'))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.