Description Usage Arguments Value Examples
View source: R/factor_to_numeric.R
Convert a factor with numeric levels to a non-factor (numeric).
1 |
x |
A vector containing a factor with numeric levels. |
The input factor made into a numeric vector.
1 2 | x <- factor(c(3, 4, 9, 4, 9), levels = c(3, 4, 9))
factor_to_num(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.