Skip to content

Instantly share code, notes, and snippets.

@ColinFay
Last active January 4, 2018 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ColinFay/18d531f88f8db5fc8914099ad8c0309d to your computer and use it in GitHub Desktop.
Save ColinFay/18d531f88f8db5fc8914099ad8c0309d to your computer and use it in GitHub Desktop.
library(purrr)
library(tidystringdist)
(comb <- tidy_comb_all(names(airquality)))
pmap(comb, ~ cor.test(airquality[[.x]], airquality[[.y]])) %>%
map_df(broom::tidy) %>%
cbind(comb, .)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment