This function is generic (see Methods); method functions can be written to handle specific classes of data. Classes which already have methods for this function include: factor data.frame
fac2num(x, ...) fac2num.default(x, ...)
df1 <- data.frame(ordered(rep(c("hi", "low"), 10)), factor(rep(c("+","-"), rep(2,5))), x = rnorm(10)) df2 <- fac2num(df1)