Learn R Programming

TestCor (version 0.0.2.2)

unvectorize: Returns an upper-triangle matrix, without the diagonal, containing the elements of a given vector.

Description

Returns an upper-triangle matrix, without the diagonal, containing the elements of a given vector.

Usage

unvectorize(vect)

Arguments

vect

A vector containing the upper triangle of a matrix, without the diagonal

Value

Returns an upper-triangle matrix where each entry is given by the vector containing the upper triangle of a matrix, without the diagonal.

See Also

vectorize

Examples

Run this code
# NOT RUN {
unvectorize(1:10)
# }

Run the code above in your browser using DataLab