[R] Odp: Error in var(x, na.rm = na.rm) : no complete element pairs

Petr PIKAL petr.pikal at precheza.cz
Wed Feb 25 10:34:14 CET 2009


Hi

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 
I 
> don't know why I have this error Error in var(x, na.rm = na.rm) : no 
complete 
> element pairs when I try to calculate it, I have been looking for 
information 
> 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.

Regards
Petr

> 
> 
> Carlos Morales Diego
> 
> 
> 
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list