17
Statistics test in R outputs many descriptions. While they are useful, how can we just output or extract single values?
> cor.test(x,y,method="spearman", exact=F)
Spearman's rank correlation rho
data: x and y
S = 12767993, p-value = 0.0001517
alternative hypothesis: true rho is not equal to 0
sample estimates:
rho
-0.188074
particularly, what to do to just get out these values 0.0001517 and -0.188074 so I can store them for further analyses?