Skip to content
Prev 165381 / 398506 Next

Summary information by groups programming assitance

Just sort the data first and then apply any of the solutions but with tail(x, 1)
instead of max, e.g.

DFo <- DF[order(DF$Lake, DF$Length, DF$vol), ]
aggregate(DFo[c("Length", "vol")], DFo[c("Lake", "psd")], tail, 1)


On Mon, Dec 22, 2008 at 8:15 PM, Ranney, Steven
<steven.ranney at montana.edu> wrote: