selectCorrelatedRows: Select features that are correlated with a given feature (or...

Description Usage Arguments Value Examples

View source: R/selectCorrelatedRows.R

Description

Select features that are correlated with a given feature (or one or more features from a set of features).

Usage

1
selectCorrelatedRows(Y, X, corThreshold = 0.1, useAbsCor = TRUE)

Arguments

Y

a vector or matrix; rows from X will be correlated with Y if Y is a vector or with rows of Y, if Y is a matrix.

X

a matrix of values that will be compared with Y (vector) or rows of Y (matrix)

corThreshold

the minimum correlation threshold for the row to be returned

useAbsCor

a logical value indicating whether absolute correlations should be used (default=TRUE).

Value

a matrix of rows of X correlated with Y (if Y is a vector) or correlated with at least one row of Y if Y is a matrix or data frame.

Examples

1
2
3
vec <- runif(10)
mat <- matrix(runif(100), 10, 10)
selectCorrelatedRows(vec, mat)

rcellminer documentation built on Nov. 26, 2020, 2:02 a.m.