Answers for "how to convert factors to numeric in r"

R
1

R factors as numeric

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

Code answers related to "how to convert factors to numeric in r"

Browse Popular Code Answers by Language