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

PIKAL Petr petr.pikal at precheza.cz
Fri Oct 5 17:51:36 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 3:18 PM
> To: r-help at r-project.org
> Subject: Re: [R] Calculating the mean in one column with empty cells
> I imported the whole dataset with read.csv2() and it works fine. (2 for
> German is correct ;) )
> I already checked the numbers and I also tried to calculate the mean of
> a range of numbers where there is no NA given. (as mentioned in my last
> post above).

But as Sarah pointed out the result in R from your values (when correctly read) are the same as in Excel. Therefore the problem seems to be in ***your*** data

output from

can be helpful in diagnosing what may be going on.


> --
> View this message in context:
> http://r.789695.n4.nabble.com/Calculating-the-mean-in-one-column-with-
> empty-cells-tp4645135p4645166.html
> Sent from the R help mailing list archive at Nabble.com.
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> 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 mailing list