as_cordf | R Documentation |
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.
as_cordf(x, diagonal = NA)
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 |
A correlation data frame
x <- cor(mtcars) as_cordf(x) as_cordf(x, diagonal = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.