UT2mat {fMRItools}R Documentation

Upper Triangular Vector to Matrix

Description

Returns the symmatric square matrix from a vector containing the upper triangular elements

Usage

UT2mat(x, diag = 0, LT = 0)

Arguments

x

A vector containing the upper triangular elements of a square, symmetric matrix.

diag

A scalar value to use for the diagonal values of the matrix, or "x" if x includes the diagonal values. Default: NA.

LT

A scalar value to use for the lower triangular values of the matrix. Default: 0.

Value

A symmetric matrix with the values of x in the upper and lower triangles and the value diag on the diagonal.


[Package fMRItools version 0.4.7 Index]