Skip to content
Prev 260792 / 398502 Next

Data Frame housekeeping

My suggestion, since bold doesn't show up in a text only mailing list,
would be to look into the function ?aggregate.

It looks like something like (assuming your data is in a mydat):

mydat.new <- aggregate(cbind(STN_ID, YEAR, MM, DAY) ~ ELEM + ?, mydat,
FUN = ?) #this is up to you

Alternatively, the plyr package is great at transforming data.frames.

On Tue, May 24, 2011 at 3:03 PM, Scott Hatcher
<scott.v.hatcher at gmail.com> wrote: