devech: Convert Half-vectorization to symmetric matrix

Description Usage Arguments Details Value Examples

Description

Convert Half-vectorization to symmetric matrix

Usage

1
devech(v, dim)

Arguments

v

A numeric vector with n * (n + 1) / 2 elements.

dim

An integer indicating the dimension of the resulting square, symmetric matrix.

Details

Throws an error if dim does not correspond to the length of v.

Value

The n by n symmetric matrix whose half-vectorization is v.

Examples

1
2
v <- c(11:14, 22:24, 33:34, 44)
devech(v, 4)

fditraglia/zoofactr documentation built on May 16, 2019, 12:12 p.m.