[R] Calculateing means

S Ellison S.Ellison at LGCGroup.com
Mon Nov 19 16:12:30 CET 2012


 
> I have a data matrix with 570 columns containing 95 (samples) 
> with 6 replicates each.
> How can I calculate the mean of the replicates for 95 samples?

Write a function that calculates the sample means for a vector of 95 observations and then use apply() to apply that function to the whole matrix.

S

*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}




More information about the R-help mailing list