safe_cor: Safe correlation function which returns a sparse matrix...

View source: R/utils.R

safe_corR Documentation

Safe correlation function which returns a sparse matrix without missing values

Description

Safe correlation function which returns a sparse matrix without missing values

Usage

safe_cor(x, y, method = "pearson", allow_neg = F)

Arguments

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.

Value

A correlation matrix.


quadbiolab/VoxHunt documentation built on March 4, 2024, 6:37 a.m.