fnumeric | R Documentation |
fnumeric
converts factors to numeric data ignoring the levels
fnumeric(x)
x |
Factor. |
Numeric.
I recommend always to double-check after recoding.
a <- as.factor(c('2','4','6'))
as.numeric(a)
fnumeric(a)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.