dot-adj_to_dyad_C: Transform adjacency matrix to dyad-list

Description Usage Arguments Details Value

Description

Transforms an adjacency matrix of dimension n times n to a choose(n, 2) times 4 dyad-list.

Usage

1
.adj_to_dyad_C(x, symmetric)

Arguments

x

numeric or integer matrix

symmetric

boolean indicating whether whether x is symmetric or not

Details

The first column of the returned object contains identifiers for the rows of the adjacency matrix x, i, the second column contains identifiers for the columns, j, the third column contains the tie from i to j, and the fourth column contains the tie from j to i.

Value

dyad-list


baruuum/btoolbox documentation built on Aug. 17, 2020, 1:29 a.m.