mat2Vect: mat2Vect : Builds a vector from a (symmetric) matrix

Description Usage Arguments Value Examples

View source: R/tools.R

Description

mat2Vect : Builds a vector from a (symmetric) matrix

Usage

1
mat2Vect(M, symmetric, diag = FALSE)

Arguments

symmetric

: TRUE is the network is not directed. FALSE otherwise

diag

: FALSE if the self interactions are neglected. TRUE otherwise (default value = FALSE)

V

: vector

Value

matrix fulfilled with the elements of the matrix

Examples

1
2
3
V <- c(0,15);
M <- vect2Mat(V, symmetric = TRUE, diag=FALSE)
V2 <- mat2Vect(M, symmetrice = TRUE, diag = FALSE)

Sophiedonnet/NoisySBM documentation built on Oct. 20, 2020, 12:04 p.m.