make.symmetric: Creat symmetrical matrix

View source: R/make.symmetric.r

make.symmetricR Documentation

Creat symmetrical matrix

Description

Create symmetrical matrix of lower or upper traingle of a matrix

Usage

make.symmetric(values, triangle = "upper")

Arguments

values

vector of length cumsum(ncol(matrix))

triangle

defaulting to 'upper', can also take the value 'lower'

Value

A matrix of dimension ncol x ncol

See Also

xml.Extract.NM.Matrix

Examples

  make.symmetric(c(0.12,
                   0.02,1.02,
                   0.23,-0.3,0.23))

qPharmetra/qpToolkit documentation built on May 24, 2023, 8:52 a.m.