Learn R Programming

DGM (version 1.7.4)

symmetric: Turns asymetric network into an symmetric network. Helper function to determine the detection of a connection while ignoring directionality.

Description

Turns asymetric network into an symmetric network. Helper function to determine the detection of a connection while ignoring directionality.

Usage

symmetric(M)

Arguments

M

3D matrix nodes x nodes x subjects

Value

3D matrix nodes x nodes x subjects

Examples

Run this code
# NOT RUN {
M=array(NA, dim=c(3,3,2))
M[,,1]=matrix(c(0,0,0,1,0,0,0,1,0),3,3)
M[,,2]=matrix(c(0,0,0,1,0,0,0,0,0),3,3)
M_=symmetric(M)
# }

Run the code above in your browser using DataLab