Re: [R] cor.test() -- how to get the value of a coefficient

2010-06-08 Thread Erik Iverson
Ekaterina Pek wrote: Hi, all. Yet another beginner to R : ) I wonder, how it's possible to get the value of a coefficient from the object produced by cor.test() ? cor.test(a, b, method="spearman") You can always assign the value of a function to a variable, and then use ?str to see the s

Re: [R] cor.test() -- how to get the value of a coefficient

2010-06-08 Thread Joris Meys
result <- cor.test(a,b,method="spearman") result$estimate Cheers Joris On Tue, Jun 8, 2010 at 10:40 PM, Ekaterina Pek wrote: > Hi, all. > > Yet another beginner to R : ) > > I wonder, how it's possible to get the value of a coefficient from the > object produced by cor.test() ? > >> cor.test(a,

[R] cor.test() -- how to get the value of a coefficient

2010-06-08 Thread Ekaterina Pek
Hi, all. Yet another beginner to R : ) I wonder, how it's possible to get the value of a coefficient from the object produced by cor.test() ? > cor.test(a, b, method="spearman") Spearman's rank correlation rho data: a and b S = 21554.28, p-value = 2.496e-11 alternative hypothesis: tru