Description Usage Arguments Value Examples
View source: R/selectCorrelatedRows.R
Select features that are correlated with a given feature (or one or more features from a set of features).
1 | selectCorrelatedRows(Y, X, corThreshold = 0.1, useAbsCor = TRUE)
|
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). |
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.
1 2 3 | vec <- runif(10)
mat <- matrix(runif(100), 10, 10)
selectCorrelatedRows(vec, mat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.