switch.edges | R Documentation |
Puts the lowest id node among every dyad as source (and the other as target)
switch.edges(edges)
edges |
A matrix or data frame structured as a list of edges |
edge.list
transforms the input into a two-elements list containing a
dataframe of nodes (with columns “id” and “label”) and a
dataframe of edges. The last one is numeric (with columns “source”
and “target”) and based on auto-generated nodes' ids.
A list containing two data frames.
George Vega Yon
Other manipulation:
check.dpl.edges()
relations <- cbind(c(1,1,3,4,2,5,6), c(2,3,1,2,4,1,1))
relations
switch.edges(relations)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.