SachaEpskamp/swst — pull request #1 by atomicules (2012-07-19 16:32:23+00:00)
Title: Add cor.test() formatting to swst.R

Hi Sacha,

I've made a minor addition and provided formatting for `cor.test()`:

- Returns, "cor", "tau" or "rho" prefix dependant on method used
- Returns `t` and `df` for Pearsons
- Returns just `T`/`S` for Kendall/Spearman

E.g: for Pearson's would return:

cor(10.543, 91.000) = 0.846, p < 0.001)

Do you think it would be possible to amend `swp.R` so you could get a result as follows?

cor(t=10.543, df=91.000) = 0.846, p < 0.001)