Skip to content
Prev 172638 / 398502 Next

Bug in by() with dates as levels?

On Wed, Mar 4, 2009 at 5:22 PM, oren cheyette <ocheyette at gmail.com> wrote:
You might also want to take a look at the plyr package:

install.packages("plyr")
library(plyr)
ddply(x, .(A, D), function(df) sum(df$Z))
dlply(x, .(A, D), function(df) sum(df$Z))

More info at http://had.co.nz/plyr

Hadley