Description Usage Details See Also
Takes a matrix or data frame of edges, with from nodes in the first column, to nodes in the second. Returns an array of edge names in the form of 'A->B' or 'A–B' for directed and undirected edges respectfully.
1 | arcs2names(edges, directed_edges = TRUE, return_unique = FALSE)
|
This is useful when you need a way of referencing edges, and you can easily infer the name by which nodes are in the edge. For example, when combine two data frames with different annotations on the same set of edges, you can create a new 'edge_name' variable in both data frames, and merge the two objects, using that variable in 'by' argument for the 'merge' function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.