[R] why sd() can be applied to character vector?
jszhao at yeah.net
Sat Oct 27 11:16:09 CEST 2012
In the following example, sd() can be applied to a character vector.
However, mean() can not be run in a similar way. Why?
I have read sd() man page, however, I don't find information about that
> x <- as.character(1:10)
In mean.default(x) : argument is not numeric or logical: returning NA
More information about the R-help