Description Usage Arguments Value Author(s)
Coerce many variables to new classes based on a named list of variable names with values of the character string of their target class.
1 2 | coerce_from_factor(data, class_list, preserve = TRUE, suffix = ".old",
verbose = FALSE)
|
data |
the dataframe whose variables should be coerced to a new class |
class_list |
a named list of classes to be coerced to from class factor,
with the list names being the variable names (e.g. |
preserve |
whether original factor variables should be preserved |
suffix |
a suffix to add to preserved variable names |
verbose |
whether additional information should be printed to console |
the original dataframe with variables coerced to the target class and optionally preserved copies of the original variables.
Doug Kelkhoff kelkhoff.douglas@gene.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.