[R] How to convert a particular column of data.frame from numerical into factor
avneet singh
avneetaquarian at yahoo.com
Thu Feb 17 21:15:19 CET 2005
Thanks to the two Gentlemen i have my answer. I am
posting it in case some newbie like me would need
advice while starting with R.
I am not sure how often it is conveyed but your help
is surely appreciated.
ANSWER:
df$yourColumn <- factor(df$yourColumn)
Thanks to: James Holtman & Peter Alspach
ps: i cant believe it was that simple!
I believe in equality for everyone, except reporters and photographers.
~Mahatma Gandhi
More information about the R-help
mailing list