rm.isol {multiplex} | R Documentation |
Remove Isolates
Description
Function to remove isolate nodes in simple and multiple networks.
Usage
rm.isol(x, diag, diag.incl)
Arguments
x |
a matrix or array representing a network |
diag |
(optional and logical) if arrays, should the diagonals be included in the computation? |
diag.incl |
(optional and logical) if arrays, should the diagonals be included in the output? |
Details
Isolated nodes do not have any edges in the network, and in a multivariate system, there is no edges adjacent to these kinds of nodes at any level.
Value
The matrix or array representing a multiple network without the isolated actors.
Author(s)
Antonio Rivero Ostoic
See Also
Examples
## Create the data: two binary relations among three elements
arr <- round( replace( array( runif(18), c(3 ,3, 2) ), array( runif(18),
c(3, 3, 2) ) > .5, 3 ) )
## Remove isolates (if exist)
rm.isol(arr)
[Package multiplex version 3.4 Index]