paul murima wrote:
>
>
> My problem is largely when i attempt to use correlation for my data...
> xcc <- cor(a);
>
> The error i get is as follows
>
> Error in cor(a) : missing observations in cov/cor
>
As Daniel suggested, it is always best to use the function's parameter to
handle NULLs. In other cases, it could help to do
a <- na.omit(a)
but be careful: this may throw away to many rows when you have more than 2
columns.
Dieter
--
View this message in context:
http://www.nabble.com/Null-values-In-R.-tp20806622p20807696.html
Sent from the R help mailing list archive at Nabble.com.
______________________________________________
R-help@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.