[R] Problem to sort factor

Arne Brutschy abr-r-project at xylon.de
Tue Jul 17 09:24:02 CEST 2007


Hi,

hadley wickham wrote:
h> Does this get you started?
h> x <- factor(c("a", "b", "c"))
h> factor(x, levels=c("c","b","a"), labels=c("cc","bb", "aa"))
hmm, not really. I simply don't seem to get the concept of factors
here... How do I combine the above code with my dataframe and pass it
on to facet_grid???

Thanks
Arne



More information about the R-help mailing list