We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
> x<-factor(c(round(rnorm(10),2),"A","B",NA)) > as.numeric(levels(x)[x])
Source : http://www.r-bloggers.com/convert-factors-to-numbers/