Stacks correlation matrix
Stacks (correlation) matrix and selects values which are above the ``level''
Topm(X, level=0.45, values=0, corr=TRUE, square=TRUE)
X
: Data frame or matrix with valueslevel
: Thresholdvalues
: If > 0, ignores "level" and outputs until reaches number, if "all", outputs all valuescorr
: If FALSE, does not show magnitudesquare
: If FALSE, does not use lower triangle, some rows could be redundant'Topm()' stacks (correlation) matrix and selects (and sorts) values which are above the ``level''.
Good for the analysis of correlation matrices.
Data frame with correlation values
Alexey Shipunov
Cor
Topm(cor(trees), corr=TRUE)
Useful links