[R] Sorting
Chris Li
chrisli at austwaterenv.com.au
Wed Sep 23 09:16:06 CEST 2009
Hello,
Say I have a dataset as followed:
Category Value
b 1
b 2
a 7
a 1
Then, if I:
levels(Category)
It will return:
[a], [b]
But I want to keep the original order, i.e.:
[b], [a]
Is it possible to do it in R?
Thanks in advance!
Chris
--
View this message in context: http://www.nabble.com/Sorting-tp25531007p25531007.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list