powered by
as.numeric
fac2num(x, force_integer = FALSE, keep_names = TRUE, ...)
x <- factor(3:5) as.numeric(x) # 1 2 3 fac2num(x) # 3 4 5
Run the code above in your browser using DataLab