cor_to_df: Correlation to dataframe

View source: R/cor_to_df.R

cor_to_dfR 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()


richardjtelford/traitstrap documentation built on July 3, 2024, 1:46 a.m.