mnplx | R Documentation |
A function to transform multiple networks into a monoplex structure
mnplx(net, directed = TRUE, dichot, diag, clu)
net |
a three-dimensional array to be transformed into a matrix |
directed |
(optional) whether to make the matrix symmetric or not |
dichot |
(optional) should the output be dichotomized? |
diag |
(optional) should the diagonals be included? |
clu |
(optional) a vector with the cluster for the permutation |
With this function, it is possible to collapse multiple types of tie into a matrix representation with monoplex relations.
A matrix of monoplex relations
Antonio Rivero Ostoic
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 it monoplex
mnplx(arr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.