safe_cor | R Documentation |
Safe correlation function which returns a sparse matrix without missing values
safe_cor(x, y, method = "pearson", allow_neg = F)
x |
Sparse matrix or character vector. |
y |
Sparse matrix or character vector. |
method |
Method to use for calculating the correlation coefficient. |
allow_neg |
Logical. Whether to allow negative values or set them to 0. |
A correlation matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.