[R] Odp: Error in var(x, na.rm = na.rm) : no complete element pairs
petr.pikal at precheza.cz
Wed Feb 25 10:34:14 CET 2009
r-help-bounces at r-project.org napsal dne 22.02.2009 12:11:46:
> Hello all,
> I'm trying to calculate the standar desviation with sd(x,na.rm=TRUE) and
> don't know why I have this error Error in var(x, na.rm = na.rm) : no
> element pairs when I try to calculate it, I have been looking for
> about this error but nothing. Why it happens?. What can I do to fix it?.
> Thanks so much from Spain
AFAIK nobody answered your question yet. Nor do I as I was not able to
reproduce your error message and without it it is rather difficult to
reveal what caused it.
I suspect that x is not a vector but only you have means for checking it.
> Carlos Morales Diego
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help