Hi everyone,

I'm having trouble applying the Cor() function to two matrices, both of
which contain NAs. I am doing the following:

a<-cor(m1, m2, use="complete.obs")

... and I get the following error message:

Error in cor(m1, m2, use = "complete.obs") : 
  no complete element pairs

Does anyone know how I can apply a correlation, ignoring any NAs?

Thanks,

rcoder
-- 
View this message in context: 
http://www.nabble.com/correlation-between-matrices---both-with-some-NAs-tp18721853p18721853.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.

Reply via email to