Tips archive 26 Dec 2007 dabase.com → Kai's Tech Tips → R → Sorting a table Sorting a table Published 26 Dec 2007 ยท Updated 10 Feb 2020 This is good for figuring out the mode and median I think: tapply(zz$x5, zz$x10, sort) Pipe →