Skip to content
Prev 252722 / 398498 Next

sorting & subsetting a data.frame

On Mar 6, 2011, at 7:34 PM, David Winsemius wrote:

            
If you really wanted to select cases first, and still keep it a one- 
liner there is the option of:

(y <- x[x$Sepal.Length==6.7, ])[order(y$Species1), ]
David Winsemius, MD
West Hartford, CT