/ Published in: R
Slightly more efficient than "as.numeric(as.character(f))"
Expand |
Embed | Plain Text
as.numeric(levels(f))[f]
You need to login to post a comment.
Slightly more efficient than "as.numeric(as.character(f))"
as.numeric(levels(f))[f]
You need to login to post a comment.