[R] sd help

novis kaushik.sinha.cs at gmail.com
Sun Sep 4 02:00:55 CEST 2011


Hello,
I am getting a strange error while computing standard deviation. If
the do the following I get the answer NA NA. Any help??? Thank you so
much.

a<- cbind()
a<- cbind(a, 5)
a<- cbind(a, 7)
print(sd(a))

If I compute the mean it works fine though i.e., print(mean(a)) works
just fine.



More information about the R-help mailing list