Apologies for the naieveness of this question, but I'm having trouble figuring out to have factor() maintain original ordering.
For example, foo <- c("b","b","a","a") levels(factor(foo, ordered=T)) #I'd like this to return as "b" "a" #not "a" "b" I thought having ordered=T would do the trick. Thanks, Andrew ______________________________________________ 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.