powered by
Convert a correlation data frame to original matrix format.
as_matrix(x, diagonal)
A correlation data frame. See correlate or as_cordf.
correlate
as_cordf
Value (typically numeric or NA) to set the diagonal to.
Correlation matrix
# NOT RUN { x <- correlate(mtcars) as_matrix(x) # }
Run the code above in your browser using DataLab