I'm beginning with R and I have a question. I have this:
x <- data.frame(x0=c(1:10), x1=c("z", "a","a","a","a","a","c","b","b","b"))
So basically two columns. I want to sort alphabetically taking the entire row of the data frame. So that 1 - z (both x0 and x1) appear at the end.
I've tried sort() but just managed to sort the column x1 and not both x0 and x1.
Thanks