View source: R/network-utils.R
| to_matrix | R Documentation |
Converts any supported network format to an adjacency matrix.
to_matrix(x, directed = NULL)
x |
Network input: matrix, cograph_network, igraph, network, tna, etc. |
directed |
Logical or NULL. If NULL (default), auto-detect from input. |
A square numeric adjacency matrix, preserving row/column names when available.
to_igraph, to_df, as_cograph,
to_network
to_matrix(student_interactions)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.