[R] correlation between matrices - both with some NAs

rcoder mpdotbook at gmail.com
Tue Jul 29 23:58:04 CEST 2008

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?


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.

More information about the R-help mailing list