[R] Calculating the mean in one column with empty cells
petr.pikal at precheza.cz
Fri Oct 5 15:01:41 CEST 2012
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of fxen3k
> Sent: Friday, October 05, 2012 11:28 AM
> To: r-help at r-project.org
> Subject: [R] Calculating the mean in one column with empty cells
> Hi all,
> I recently tried to calculate the mean and the median just for one
> In this column I have numbers with some empty cells due to missing
> So how can I calculate the mean just for the filled cells?
> I tried:
But the output was different to the calculation I died in Microsoft
Hm. I am also sometimes dying from Excel performance.
There could be 2 options:
Excel is wrong
You did not have transferred values from Excel to R correctly, they are screwed somehow.
Which one is true is difficult to decide based on information you revealed.
> Thanks in advance,
> View this message in context:
> 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-
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help