[R] Calculating the mean in one column with empty cells

fxen3k f.sehardt at gmail.com
Fri Oct 5 11:27:51 CEST 2012

Hi all,

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? 
I tried:
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.

More information about the R-help mailing list