util_ensure_label {dataquieR}R Documentation

Utility function ensuring valid labels and variable names

Description

Valid labels should not be empty, be unique and do not exceed a certain length.

Usage

util_ensure_label(meta_data, label_col, max_label_len = MAX_LABEL_LEN)

Arguments

meta_data

data.frame the data frame that contains metadata attributes of study data

label_col

variable attribute the name of the column in the metadata with labels of variables

max_label_len

integer maximum length for the labels, defaults to 30.

Value

a list containing the study data, possibly with adapted column names, the metadata, possibly with adapted labels, and a string and a table informing about the changes


[Package dataquieR version 2.5.1 Index]