Answers for "R factors as numeric"

R
1

R factors as numeric

as.numeric(levels(f))[f] # f being the factor column
Posted by: Guest on August-04-2020

Browse Popular Code Answers by Language