[R] Calculating the mean in one column with empty cells
smartpink111 at yahoo.com
Fri Oct 5 16:21:29 CEST 2012
Not sure how your dataset looks like:
But, there is one problem that is obvious "dataset2" and "master". Looks like you have two datasets.
----- Original Message -----
From: fxen3k <f.sehardt at gmail.com>
To: r-help at r-project.org
Sent: Friday, October 5, 2012 5:27 AM
Subject: [R] Calculating the mean in one column with empty cells
I recently tried to calculate the mean and the median just for one column.
In this column I have numbers with some empty cells due to missing data.
So how can I calculate the mean just for the filled cells?
But the output was different to the calculation I died in Microsoft Excel.
Thanks in advance,
View this message in context: http://r.789695.n4.nabble.com/Calculating-the-mean-in-one-column-with-empty-cells-tp4645135.html
Sent from the R help mailing list archive at Nabble.com.
R-help at r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
More information about the R-help