as_cordf: Coerce lists and matrices to correlation data frames
Description
A wrapper function to coerce objects in a valid format (such as correlation
matrices created using the base function, cor) into a
correlation data frame.
Usage
as_cordf(x, diagonal = NA)
Arguments
x
A list, data frame or matrix that can be coerced into a correlation
data frame.
diagonal
Value (typically numeric or NA) to set the diagonal to.