View source: R/save_correlation_matrix.R
save_correlation_matrix | R Documentation |
correlation_matrix
and Hmisc::rcorr
in the backendCreates and save to file a fully formatted correlation matrix, using correlation_matrix
and Hmisc::rcorr
in the backend
save_correlation_matrix(df, filename, ...)
df |
dataframe; passed to |
filename |
either a character string naming a file or a connection open for writing. "" indicates output to the console; passed to |
... |
any other arguments passed to |
'csv' file. No value is returned.
save_correlation_matrix(df = iris,
filename = 'iris-correlation-matrix.csv')
save_correlation_matrix(df = mtcars,
filename = 'mtcars-correlation-matrix.csv',
digits = 3,
use = 'lower')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.