[R] programming advice

Fred JEAN frederic.jean at univ-brest.fr
Fri Jun 23 11:57:36 CEST 2006

Martin Maechler wrote:
> [...]
> Just a note:  
> Why are you making the detour of calling cor.test(.)
> when  
>       cor(nox, noy,  method = "kendall")    
> is probably all you need?

I use cor.test() because I want to test the value of Tau.

Thanks to everyone. I'll use the solution proposed by Ronggui.

The Kendall package solution is certainly also valuable but less direct
(in my newbie opinion) : in fact x and y are extracted from a
contingency table and I should use replace() to substitute "double NAs"
to "double zeros"

Thanks again


More information about the R-help mailing list