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 structure of that object.
x <- cor.test(a, b, method = "spearman")
str(x)
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.