powered by
Helper function for bootstrap_traits_multivariate that extracts results from a correlation matrix
cor_to_df(corr)
A data.frame of correlations
correlation matrix
Modified from https://stackoverflow.com/a/23476844/2055765
x <- matrix(ncol = 5, rnorm(20)) colnames(x) <- letters[1:5] cor(x) |> cor_to_df()
Run the code above in your browser using DataLab