low2sym: Lower Triangle to Symmetric

Description Usage Arguments Value Author(s) See Also Examples

View source: R/conversion.R

Description

Creates a symmetric matrix from the lower triangle of a square matrix.

Usage

1

Arguments

X

Square numeric matrix.

Value

Returns a symmetric matrix.

Author(s)

Ivan Jacob Agaloos Pesigan

See Also

Other matrix functions: cor2cov(), tr(), up2sym()

Examples

1
2
3
X <- matrix(NA, ncol = 4, nrow = 4)
X[lower.tri(X, diag = TRUE)] <- 1:10
low2sym(X = X)

jeksterslabds/jeksterslabRmatrix documentation built on Aug. 4, 2020, 5:18 a.m.