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.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to