Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
R factors as numeric
Echoisafool
Programming language:
Whatever
2021-07-20 15:33:13
0
Q:
R factors as numeric
Katarina Hermione Christoforou
Code:
Whatever
2021-07-31 03:16:52
as.numeric(levels(f))[f] # f being the factor column
1
Related
how to get number of columns in matrix R
how to convert matrix to numeric in r
random integer in r
generate numbers in distribution r
show factor levels in r
what is factor in r programming
phasors in numpy
r dataframe convert factor to numeric
regex to identify numeric and alphanumeric
how to format a number in r
New to Communities?
Join the community