mat.vectorization: Matrix vectorization

View source: R/mat.vectorization.R

mat.vectorizationR Documentation

Matrix vectorization

Description

Transform a matrix into a vector.

Usage

mat.vectorization(M, sym = FALSE, erase.diag = TRUE)

Arguments

M

an adjacency matrix or list of adjacency matrices.

sym

if true will vectorize only the lower triangle.

erase.diag

if true will not keep the diagonal of the matrix.

Details

Transform an adjacency matrix (symetric or not) into a vector.


SebastianSosa/ant documentation built on Sept. 23, 2023, 7:06 a.m.