Topm: Stacks correlation matrix

View source: R/cor.r

TopmR Documentation

Stacks correlation matrix

Description

Stacks (correlation) matrix and selects values which are above the “level”

Usage

Topm(X, level=0.45, values=0, corr=TRUE, square=TRUE)

Arguments

X

Data frame or matrix with values

level

Threshold

values

If > 0, ignores "level" and outputs until reaches number, if "all", outputs all values

corr

If FALSE, does not show magnitude

square

If FALSE, does not use lower triangle, some rows could be redundant

Details

'Topm()' stacks (correlation) matrix and selects (and sorts) values which are above the “level”.

Good for the analysis of correlation matrices.

Value

Data frame with correlation values

Author(s)

Alexey Shipunov

See Also

Cor

Examples

Topm(cor(trees), corr=TRUE)

shipunov documentation built on Feb. 16, 2023, 9:05 p.m.

Related to Topm in shipunov...