upper_tri_vec: Turn symmetric matrix into vector

Description Usage Arguments Examples

Description

An internal function not intended for the user. Turns a matrix into a vector of the upper-triangular elements (arranged by row).

Usage

1

Arguments

m

Matrix

Examples

1
2
3
4
5
6
# make a simple correlation matrix
x = rnorm(10); y = rnorm(10); z = rnorm(10)
mat = cor( data.frame(x,y,z) )

# turn into into vector
upper_tri_vec(mat)

SimTimeVar documentation built on May 2, 2019, 8:31 a.m.