Re: [R] Interesting function in a function problem....

2009-09-29 Thread Jorge Ivan Velez
Hi chipmaney, Here is a suggestion: with(data, tapply(value, group, function(x) sd(x)/sqrt( length(x) ) ) ) * sqrt(fc$fc) BTW, take a look at require(fortunes) fortune('dog') HTH, Jorge On Tue, Sep 29, 2009 at 6:29 PM, chipmaney <> wrote: > > #I have these data. Basically, I want to run a ta

[R] Interesting function in a function problem....

2009-09-29 Thread chipmaney
#I have these data. Basically, I want to run a tapply to calculate the mean and st. err. by factor. #The problem is, I want to add a finite correction to the variance prior to calculating the standard error. #Now I know I could just do this in 3/4 steps by calculating the var, applying the correct