selectCorrelatedRows {rcellminer} | R Documentation

## 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.

### Examples

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

[Package rcellminer version 2.16.0 Index]