Description Usage Arguments Details Value Author(s) Examples
Number of columns which are highly correlated to other columns
1 | cor_columns(x, abs_cutoff = 0.5, size = 1000, mc = 1, ...)
|
x |
a matrix, correlation is calculated by columns |
abs_cutoff |
cutoff of absolute correlation. It can be a numeric vector with more than one cutoffs. |
size |
size of blocks |
mc |
number of cores |
... |
pass to |
For each column, it looks for number of other columns which correlate with absolute correlation coefficient larger tham abs_cutoff
.
The calculation involves pair-wise correlation of all columns in the matrix.
When number of columns is huge in the matrix, it is out of ability of R to store such long vector. This function
solves this problem by splitting the columns into k blocks and looks at each block sequentially or in parallel.
The code is partially adapted from https://rmazing.wordpress.com/2013/02/22/bigcor-large-correlation-matrices-in-r/
A matrix that represents how many other columns correlate to current column under the correlation cutoff.
Zuguang Gu <z.gu@dkfz.de>
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.