symm_mat: Symmetric Matrix Copy the upper triangular of a matrix into...

Description Usage Arguments Value Examples

Description

Symmetric Matrix

Copy the upper triangular of a matrix into the lower triangular portion of the matrix.

Usage

1

Arguments

x

A matrix of dimensions p by p.

Value

A matrix

Examples

1
2
adj <- matrix(sample(0:1, size = 25, replace = TRUE), 5, 5)
symm_mat(adj)

donaldRwilliams/IRCcheck documentation built on Dec. 20, 2021, 12:12 a.m.