spearman.cor: Compute Spearman Correlation on two list objects

View source: R/basics.R

spearman.corR Documentation

Compute Spearman Correlation on two list objects

Description

Wrapper around correlation.

Usage

spearman.cor(
  v1,
  v2 = NULL,
  method = "spearman",
  use = "pairwise.complete.obs",
  match.flag = F,
  alternative = "two.sided",
  upper.tri.flag = F
)

Arguments

v1

matrix, rows are samples, columns are genes

v2

metric to evaluate the correlation with (must be same length as rows of v1)

method

(default = "spearman")

use

(default = "pairwise.complete.obs") type of correlation

match.flag

(default = F)

alternative

(default = "two.sided") alternative hypothesis for correlation test

upper.tri.flag

(default = F)

Value

a new subsetted list object


Jerby-Lab/opipes documentation built on Oct. 7, 2022, 12:28 p.m.