validate_categorical_variables: Validate the categorical variables template (catvars_*.txt)

View source: R/validate_templates.R

validate_categorical_variablesR Documentation

Validate the categorical variables template (catvars_*.txt)

Description

Validate the categorical variables template (catvars_*.txt)

Usage

validate_categorical_variables(x)

Arguments

x

(named list) The data and metadata object returned by template_arguments().

Details

This function validates the table attributes classified as categorical only for data tables that are listed in x.Checks performed by this function:

  • Categorical metadata is expected for variables classified "categorical"

  • Categorical variable template olumn names are correct

  • Categorical codes are defined

Value

issues

(character) Descriptions of issues found in the template grouped by "required" and "optional" criteria.

x

(named list) If "required" issues are found for a data table, then the corresponding categorical variables template is removed. Some "optional" issues reclassified the categorical variable as "character".


EDIorg/emlAssemblyLine documentation built on Nov. 4, 2022, 11:59 p.m.