Learn R Programming

simdata (version 0.4.1)

cor_to_upper: Convert correlation matrix to specification used by cor_from_upper

Description

Convert correlation matrix to specification used by cor_from_upper

Usage

cor_to_upper(m, remove_below = .Machine$double.eps)

Value

Matrix with 3 columns (variable_1, variable_2, correlation), where correlation gives the entry at position (variable_1, variable_2) of the input correlation matrix. Note that variable_1 < variable_2 holds for all entries.

Arguments

m

Symmetric correlation matrix.

remove_below

Threshold for absolute correlation values below which they are removed from the returned matrix. If NULL then no filtering is applied.

See Also

cor_from_upper