powered by
A function to transform multiple networks into a monoplex structure
mnplx(net, directed = TRUE, dichot, diag, clu)
A matrix of monoplex relations
a three-dimensional array to be transformed into a matrix
(optional) whether to make the matrix symmetric or not
(optional) should the output be dichotomized?
(optional) should the diagonals be included?
(optional) a vector with the cluster for the permutation
Antonio Rivero Ostoic
With this function, it is possible to collapse multiple types of tie into a matrix representation with monoplex relations.
zbind, dichot, reduc
zbind
dichot
reduc
## create the data: 2 binary relations among 3 elements arr <- round( replace( array(runif(18), c(3,3,2)), array(runif(18), c(3,3,2))>.5, 1 ) ) ## make array monoplex mnplx(arr)
Run the code above in your browser using DataLab