| makefacnum | R Documentation |
Converts factor vectors to numeric vectors.
makefacnum(x)
x |
A vector. |
A numeric vector.
Charles Crabtree charles.crabtree@monash.edu
x <- c("1", "2", "3")
x <- as.factor(x)
x
x <- makefacnum(x)
x
is.numeric(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.