Quick build a metanet from two columns table

twocol_edgelist(edgelist)

Arguments

edgelist

two columns table (no elements exist in two columns at same time)

Value

metanet

See also

Examples

twocol <- data.frame(
  "col1" = sample(letters, 30, replace = TRUE),
  "col2" = sample(c("A", "B"), 30, replace = TRUE)
)
twocol_net <- twocol_edgelist(twocol)
#> No 'from' and 'to' in the colnames(edgelist), use the first two columns as the 'from' and 'to'.
plot(twocol_net)

c_net_plot(twocol_net, g_layout_polygon(twocol_net))