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 |

`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 a matrix, it is out of ability of R to store such a long vector. This function
solves this problem by splitting the columns into k blocks and looks at each block sequentially or parallel.

The code is partially adapted from https://rmazing.wordpress.com/2013/02/22/bigcor-large-correlation-matrices-in-r/

A vector 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 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.