View source: R/clean_variable_labels.R
clean_variable_labels | R Documentation |
This function standardises the labels of all characters of factors in a
data.frame
. It uses the standardisation implemented by
epitrix::clean_labels()
in the epitrix
package. See
?epitrix::clean_labels
for more information.
clean_variable_labels(x, classes = NULL, ...)
x |
a |
classes |
a vector of class definitions for each of the columns. If this
is not provided, the classes will be read from the columns themselves.
Practically, this is used in |
... |
further arguments passed to |
A data.frame
with standardised labels for characters and
factors.
Thibaut Jombart
## make toy data toy_data <- clean_variable_names(messy_data()) ## clean variable labels, store in new object, show results clean_data <- clean_variable_labels(toy_data) clean_data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.