View source: R/validate_templates.R
validate_table_attributes | R Documentation |
Validate the table attributes template (attributes_*.txt)
validate_table_attributes(x)
x |
(named list) The data and metadata object returned by
|
Checks performed on each data tables attribute metadata:
Attribute metadata is present for each data table
Template columns are correctly named
All columns of a table are listed as attributes
All columns of a table are listed in the same order as attributes
All attributes are defined
All attributes are assigned a class
Classes are of the expected type
Numeric classes are assigned units
All units are from the standard dictionary or defined
Date classed attributes have a format specifier
Date and time format specifiers are not empty
Only one missing value code is allowed per attribute
Missing value code is not a blank/white space
All missing value codes are defined
False "numeric" attributes are reclassified as "character"
issues |
(character) Descriptions of issues found in the template grouped by "required" and "optional" criteria. |
x |
(named list) If "required" issues are found, then the template is removed along with the corresponding data table. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.