crossCors: Calculate cross-correlations with between rows of input...

View source: R/crossCors.R

crossCorsR Documentation

Calculate cross-correlations with between rows of input matrices

Description

Calculate cross-correlations with between rows of input matrices

Usage

crossCors(X, Y = NULL, method = "pearson")

Arguments

X

a matrix or data.frame

Y

a matrix or data.frame

method

a string specifying the type of correlation, chosen from pearson (default) or spearman.

Value

a list containing matrices of pairwise correlations and their p-values between rows of the input matrices or dataframes.

Author(s)

Sudhir Varma, NCI-LMP, with input checks, support for Spearman's correlation added by VNR.

Examples

drugActData <- exprs(getAct(rcellminerData::drugData))
crossCors(drugActData[c("94600"), ], drugActData[c("727625", "670655"), ])
crossCors(drugActData[c("94600"), ], drugActData[c("727625", "670655"), ], method="spearman")


cannin/rcellminer documentation built on Aug. 11, 2024, 8:45 a.m.