Learn R Programming

rcellminer (version 1.4.2)

crossCors: 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.

concept

rcellminer

Examples

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

Run the code above in your browser using DataLab