| mutate_nodes | R Documentation |
Evaluates expressions against the node table, with the same centrality and
structural vocabulary that select_nodes() offers, and stores
the results as node columns.
mutate_nodes(x, ..., keep_format = FALSE, directed = NULL)
x |
Network input. |
... |
Named expressions, for example |
keep_format |
Logical. Return the input format when TRUE. Note that only igraph and cograph_network formats can carry node attributes; a matrix cannot, and the new columns are lost. |
directed |
Logical or NULL. If NULL (default), auto-detect. |
A cograph_network whose node table has the new columns, or
the input format when keep_format = TRUE.
mutate_edges, select_nodes,
centrality
as.data.frame(mutate_nodes(regulation_net, deg = degree), what = "nodes")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.