Learn R Programming

rcellminer (version 1.4.2)

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

Description

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

Usage

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.

concept

rcellminer

Examples

Run this code
vec <- runif(10)
mat <- matrix(runif(100), 10, 10)
selectCorrelatedRows(vec, mat)

Run the code above in your browser using DataLab