[R] tapply function

FMH kagba2006 at yahoo.com
Tue Nov 3 14:28:11 CET 2009


Hi,

I tried to use tapply function to find the mean of the data in each group as the following command, but the result are NA, as there are several missing values in each group.

tapply(data,group,mean)

Could someone please advice me the way to  ignore the missing data in order for the fucntion to run successfully?

Thanks

Fir







More information about the R-help mailing list