View source: R/template_categorical_variables.R
template_categorical_variables | R Documentation |
Describes categorical variables of a data table. Use if any columns are classified as categorical in table attributes template.
template_categorical_variables(path, data.path = path, write.file = TRUE)
path |
(character) Path to the metadata template directory. |
data.path |
(character) Path to the data directory. |
write.file |
(logical; optional) Whether to write the template file. |
template_categorical_variables()
knows which columns of a table
are categorical
based on their definition under the class
column of the attributes_*.txt template.
Character encoding of metadata extracted directly from the tables are
converted to UTF-8 via enc2utf8()
.
catvars_* |
Columns:
|
## Not run: # Set working directory setwd("/Users/me/Documents/data_packages/pkg_260") # For tables containing categorical variables as classified in the table attributes template template_categorical_variables( path = "./metadata_templates", data.path = "./data_objects") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.