[R] correlation between matrices - both with some NAs

From: rcoder <mpdotbook_at_gmail.com>
Date: Tue, 29 Jul 2008 14:58:04 -0700 (PDT)

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.

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 29 Jul 2008 - 23:35:18 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 30 Jul 2008 - 19:32:59 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive