[R] Error Calculating Mean
mr.blacksheep at gmail.com
Sun Jul 9 21:45:22 CEST 2006
I'd hazard a guess that data.linear$Weight may have a "Not Available"
data point (ie. missing data).
> f <- c(NA,rnorm(10))
If you'd like to compute the mean anyway, you can use
On 7/9/06, justin rapp <jdrapp at gmail.com> wrote:
> I have a vector containing players' weights. When I enter
> "numeric" is returned.
> When I type mean(data.linear$Weight)
> NA is returned.
> Any ideas as to why this may be the case? I am trying to calculate
> this ultimately so I can superimpose a normal density line over a
> histogram containing the weights?
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
More information about the R-help