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
Dear List,
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?
Thank you.
The information contained in this electronic e-mail transmission and any
attachments are intended only for the use of the
-Original Message-
From: skha...@nshs.edu
Sent: Fri, 16 Nov 2012 15:58:17 -0500
To: r-help@r-project.org
Subject: [R] Calculateing means
Dear List,
I have a data matrix with 570 columns containing 95 (samples) with 6
replicates each.
How can I calculate the mean
means for x1-x3, x4-x6, x7-x9
For each row.
-Sohail
-Original Message-
From: John Kane [mailto:jrkrid...@inbox.com]
Sent: Friday, November 16, 2012 4:35 PM
To: Khan, Sohail; 'r-help@r-project.org'
Subject: RE: [R] Calculateing means
?aggregate will do it.
x - data.frame( height= c(50, 174
Kane [mailto:jrkrid...@inbox.com]
Sent: Friday, November 16, 2012 4:35 PM
To: Khan, Sohail; 'r-help@r-project.org'
Subject: RE: [R] Calculateing means
?aggregate will do it.
x - data.frame( height= c(50, 174, 145, 200, 210, 140, 175),
age_group=c(1,2,2,1,1,2,1),
ville
,] 43.0 53.00 24.0
#[3,] 26.7 50.67 27.3
#[4,] 22.0 44.33 28.0
A.K.
- Original Message -
From: Khan, Sohail skha...@nshs.edu
To: 'r-help@r-project.org' r-help@r-project.org
Cc:
Sent: Friday, November 16, 2012 4:42 PM
Subject: Re: [R] Calculateing means
-project.org
Cc:
Sent: Friday, November 16, 2012 4:42 PM
Subject: Re: [R] Calculateing means
Thanks. But aggregate will work on rows or columns. I need to calculate mean
for subsets of rows in a matrix
I.E.
Indx x1 x2 x3 x4 x5 x6 x7 x8 x9
1 25 30 15
7 matches
Mail list logo