man/examples/as.num.R

require(lfactors)
# create an example
let <- lfactor(4:12,
               levels=4:12,
               labels=letters[4:12])

as.numeric(let)
#same as as.numeric(4:12)
as.integer(let)
#same as 1:9

Try the lfactors package in your browser

Any scripts or data that you put into this service are public.

lfactors documentation built on March 18, 2018, 2:08 p.m.