fct_to_num | R Documentation |
Convert a factor variable with numeric levels to a numeric variable
fct_to_num(f)
f |
A factor variable with numeric levels |
A numeric variable
var <- factor(c("1", "2", "3"))
fct_to_num(var)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.