Hello, Is there any function in R which sorted data as
x1 <- c(1,3,2,4,5,1) x2 <- c(2,0,2,3,5,2) TheData <- data.frame(x1,x2) TheData1 <- sort(TheData, by=c(x1,x2)) Thanks in advance! Alfons ____________________________________________________________________________________ [[alternative HTML version deleted]] ______________________________________________ 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.