edgl_to_matrix | R Documentation |
Convert an edge list to a matrix.
edgl_to_matrix(df, sym)
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. |
Adjacency matrix is one of the numerous representation of a social network.
A square adjacency matrix.
Sebastian Sosa, Ivan Puga-Gonzales.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.