## Using `stats::cov` produces a covariance data frame.
colpair_map(mtcars, cov)
## Function to get the p-value from a t-test:
calc_p_value <- function(vec_a, vec_b) {
t.test(vec_a, vec_b)$p.value
}
colpair_map(mtcars, calc_p_value)
Run the code above in your browser using DataLab