Learn R Programming

multiplex (version 2.3)

mnplx: Make a multiple network as monoplex structure

Description

A function to transform multiple networks into a monoplex structure

Usage

mnplx(net, directed = TRUE, dichot = TRUE, diag.incl = FALSE)

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.incl
(optional) should the diagonals be included?

Value

A matrix of monoplex relations

Details

With this function it is possible to collapse multiple types of tie into a matrix representation with monoplex relations.

See Also

zbind, dichot, reduc

Examples

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

Run the code above in your browser using DataLab