powered by
Converts factor vectors to numeric vectors.
makefacnum(x)
A vector.
A numeric vector.
# NOT RUN { x <- c("1", "2", "3") x <- as.factor(x) x x <- makefacnum(x) x is.numeric(x) # }
Run the code above in your browser using DataLab