LTmat: Construct a symmetric matrix from its lower triangle.

View source: R/linpk.R

LTmatR Documentation

Construct a symmetric matrix from its lower triangle.

Description

Construct a symmetric matrix from its lower triangle.

Usage

LTmat(LT, .names = attr(LT, ".names"), .colnames = .names, .rownames = .names)

Arguments

LT

A numeric vector giving the elements of the lower triangle of the matrix by row (see examples).

.names, .colnames, .rownames

Optionally, specify row and column names of the resulting matrix.

Value

A symmetric matrix.

Examples

LTmat(1:6)

linpk documentation built on Dec. 4, 2022, 5:06 p.m.