A wrapper for cor.test that returns data in a data.frame rather than a
cumbersome list
Usage
cor_test(var1, var2, method = NULL, round = TRUE)
Arguments
var1
a vector to correlate with var2
var2
a vector to correlate with var1
method
the correlation method to use, either pearson, spearman, or
kendall
round
logical, whether or not to round the results
Value
Returns a data.frame version of the standard htest output. Use
intended for presentation of data because numbers are converted to
character and then back to numeric, trimming each values length and
costing you precision.