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

View source: R/utils.R

sparse_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

sparse_cor(
  x,
  y = NULL,
  method = "pearson",
  allow_neg = TRUE,
  remove_na = TRUE,
  remove_inf = TRUE,
  ...
)

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.

...

Other arguments passed to the correlation function.

Value

A correlation matrix.


quadbiolab/Pando documentation built on April 22, 2024, 8:14 a.m.