cor_to_upper: Convert correlation matrix to specification used by...

View source: R/utilities.R

cor_to_upperR Documentation

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)

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.

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.

See Also

cor_from_upper


matherealize/simdata documentation built on Dec. 5, 2024, 4:17 a.m.