low2sym: Lower Triangle to Symmetric

Description Usage Arguments Value Author(s) See Also Examples

View source: R/mat.R

Description

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

Usage

1

Arguments

x

A square 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/jeksterslabRds documentation built on July 16, 2020, 3:41 p.m.