# Pairwise correlation tests between variables
#:::::::::::::::::::::::::::::::::::::::::::::::
res.cor.test <- mtcars %>%
select(mpg, disp, hp, drat, wt, qsec) %>%
cor_test()
res.cor.test
# Convert the correlation test into a correlation matrix
#:::::::::::::::::::::::::::::::::::::::::::::::
res.cor.test %>% as_cor_mat()
Run the code above in your browser using DataLab