fnumeric.Rd
fnumeric converts factors to numeric data ignoring the levels
fnumeric
fnumeric(x)
Factor.
Numeric.
I recommend always to double-check after recoding.
a <- as.factor(c('2','4','6')) as.numeric(a)#> [1] 1 2 3fnumeric(a)#> [1] 2 4 6