shipunov (version 1.5)

Topm: 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

Value

Data frame with correlation values

Details

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

Good for the analysis of correlation matrices.

See Also

Cor

Examples

Run this code
# NOT RUN {
Topm(cor(trees), corr=TRUE)
# }

Run the code above in your browser using DataCamp Workspace