Learn R Programming

linpk (version 1.1.2)

LTmat: 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)

Value

A symmetric matrix.

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.

Examples

Run this code
LTmat(1:6)

Run the code above in your browser using DataLab