[R] Cannot calculate mean() for double vector

Reuben Bellika rubenyi at gmail.com
Fri Oct 16 20:26:59 CEST 2009


It looks like I should read the documentation a bit more carefully.
Simply ignoring the NA values when calculating the mean *is* a much
better solution. (Although having 10 values out of a vector of 40000
or so set to zero is *not* going to bias the mean toward zero in any
significant way.)

Thanks to everyone for your help.

Reuben




More information about the R-help mailing list