[R] Odp: Tapply.

2010-04-26 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 26.04.2010 06:52:55: > Having some difficulties with understanding how tapply works and getting > return values I expect > > Data: dataframe. DF DF$Id $D $Year... > > Id D Year Jan Feb Mar Apr May Jun Jul Aug Sep Oct >

[R] Odp: tapply, mean and subset

2007-11-13 Thread Petr PIKAL
Hi [EMAIL PROTECTED] napsal dne 13.11.2007 10:59:09: > Dear list, > > I have this dataframe > >V1 V2 F1 > 1 A 2 0 > 2 A 3 0 > 3 A 4 1 > 4 B 3 0 > 5 B 2 1 > 6 C 6 0 > 7 C 2 0 > 8 C 6 0 > > and would like to calculate a new column > with mean-values, following this ru