Re: [R] Getting mean in a dataframe

2007-11-13 Thread James D Forester
Gang Chen-3 wrote: > > Sorry to hijack this thread. I have a similar but slightly different > situation. Using the original poster's example, how to elegantly get > the mean of column V2 when column V1 is either A or C and F1 is 0? > > I am not sure if this is elegant, but it works: a=me

[R] Getting mean in a dataframe

2007-11-13 Thread Gang Chen
Sorry to hijack this thread. I have a similar but slightly different situation. Using the original poster's example, how to elegantly get the mean of column V2 when column V1 is either A or C and F1 is 0? Thanks, Gang On Nov 13, 2007, at 5:30 AM, Petr PIKAL wrote: > Hi > > [EMAIL PROTECTED]