edgl_to_matrix: Edge list to matrix

View source: R/RcppExports.R

edgl_to_matrixR Documentation

Edge list to matrix

Description

Convert an edge list to a matrix.

Usage

edgl_to_matrix(df, sym)

Arguments

df

a data frame contening at leas three columns with the names: 'from','to' and 'weight', corresponding respectively to the individual emiting the beaheviour, the individual receving the beahviour, and the number of time this interaction occure.

sym

a boolean if TRUE then the interactions are concider to be symetric.

Details

Adjacency matrix is one of the numerous representation of a social network.

Value

A square adjacency matrix.

Author(s)

Sebastian Sosa, Ivan Puga-Gonzales.


SebastianSosa/ant documentation built on Sept. 23, 2023, 7:06 a.m.