vect2Mat: vect2Mat : transform a vector into a matrix (replicating...

Description Usage Arguments Value Examples

View source: R/tools.R

Description

vect2Mat : transform a vector into a matrix (replicating symetric elements if needed)

Usage

1
vect2Mat(V, symmetric, diag = FALSE)

Arguments

V

: vector

symmetric

: TRUE is the network is not directed. FALSE otherwise

diag

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

Value

matrix fulfilled with the elements of the matrix

Examples

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

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