Adjust labels in meta_data to be valid variable names in formulas for
diverse r functions, such as
character label attribute to adjust or character vector to
adjust, depending on
data.frame meta data frame: If
logical disallow duplicates in input or output vectors of
the function, then, prep_clean_labels would call
Currently, labels as given by
label_col arguments in the most functions
are directly used in formula, so that they become natural part of the
outputs, but different models expect differently strict syntax for such
formulas, especially for valid variable names.
all potentially inadmissible characters from variable names (no guarantee,
that some exotic model still rejects the names, but minimizing the number
of exotic characters). However, variable names are modified, may become
unreadable or indistinguishable from other variable names. For the latter
stop call is possible, controlled by the
A warning is emitted, if modifications were necessary.
a data.frame with:
meta_data is set, a list with:
meta_data[, label_col] column
meta_data is not set, adjusted labels that then were directly given
1 2 3 4 5 6 7 8 9 10 11 12
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.