vector_to_matrix: Turn a vector into a matrix

Description Usage Arguments Value

View source: R/fdr.R

Description

The input vector is assumed to be the lower.tri of a symmetric matrix. This function recreates the original matrix from the vector.

Usage

1
vector_to_matrix(x, diag_val = 0)

Arguments

x

the vector containing lower.tri entries of a symmetric matrix.

diag_val

value to put along the diagonal.

Value

A symmetric matrix.


tgrimes/dnapath2 documentation built on May 21, 2020, 5:53 p.m.