Description Usage Arguments Value
View source: R/rename_attributes.R
Rename data columns according to metadata.
1 2 3 4 5 6 7 8 9 | rename_attributes(
meta_list,
dataset_id,
entity,
file_dir = getwd(),
filename = "",
x,
append_units = T
)
|
meta_list |
(character) A list of dataframes containing metadata returned by |
dataset_id |
(numeric) A dataset ID. |
entity |
(numeric) An entity number. |
file_dir |
(character) Path to directory containing flat files (data files). Defaults to current R working directory. |
filename |
(character) Filename. Defaults to "", in which case the entity metadata will be read to find filename. |
x |
R object. If specified, will skip looking for entity file altogether. |
append_units |
(logical) If TRUE, will append abbreviated units (see vw_custom_units) to column names as specified in metabase. Defaults to TRUE. |
The data table entity with renamed columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.