[R] use logical in cor.test

Erik Iverson eriki at ccbr.umn.edu
Tue Mar 30 06:50:43 CEST 2010


<snip>
> cor.test(Both[,1],Both[,2])

What does

 > Both[,1]

show you?

> cor.test(Both[,1]>2.5,Both[,2]>2.5)

What does

 > Both[,1] > 2.5

show you?



More information about the R-help mailing list