Skip to content
Prev 80475 / 398502 Next

Using split and sapply to return entire lines

On Tue, Nov 08, 2005 at 10:47:26PM -0500, Gabor Grothendieck wrote:
The issue here is that I need the row corresponding to the month with
the maximum length.  That is, aggregate(.) is returning both the
maximum month and maximum ratio for all rows with month=Jan.  I need
the single row in month=Jan which has the maximum length.

Thanks,
-TAG