cor_to_df {traitstrap} | R Documentation |
Correlation to dataframe
Description
Helper function for bootstrap_traits_multivariate that extracts results from a correlation matrix
Usage
cor_to_df(corr)
Arguments
corr |
correlation matrix |
Value
A data.frame of correlations
References
Modified from https://stackoverflow.com/a/23476844/2055765
Examples
x <- matrix(ncol = 5, rnorm(20))
colnames(x) <- letters[1:5]
cor(x) |> cor_to_df()
[Package traitstrap version 0.1.0 Index]