Learn R Programming

multiplex (version 3.7)

mnplx: Make Multiple Networks as Monoplex Structures

Description

A function to transform multiple networks into a monoplex structure

Usage

mnplx(net, directed = TRUE, dichot, diag, clu)

Value

A matrix of monoplex relations

Arguments

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

Author

Antonio Rivero Ostoic

Details

With this function, it is possible to collapse multiple types of tie of a given network into a matrix representation with monoplex relations. Besides dichotomizing, directed networks can be converted into undirected systems as well with or without self-relations. Moreover, the resulted matrix can be permuted with a clustering information in a vector in clu as with perm.

See Also

zbind, dichot, reduc

Examples

Run this code
# 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, 1 ) )

# make array monoplex
mnplx(arr)

Run the code above in your browser using DataLab