Skip to content
Prev 207862 / 398502 Next

tapply on multiple groups

GL
Can you make tapply break down groups similar to bwplot or such? Example:

Data frame has one measure (Days) and two Dimensions (YYYYMM and Place). All
have the same length.
[1] 3306
[1] 3306
[1] 3306

Doing the following makes a nice table for one dimension and one measure:

    do.call(rbind,tapply(dbs.final$Days,dbs.final$Place, summary))

But, what I really need to do is break it down on two dimensions and one
measures - effectively equivalent to the following bwplot call:

    bwplot( Days ~ YYYYMM | Place, ,data=dbs.final)

Is there an equivalent to the "|" operation in tapply?