Create a two-mode network from a data.frame
Examples
library(igraph)
edges <- data.frame(mode1 = 1:5, mode2 = letters[1:5])
bipartite_from_data_frame(edges, "mode1", "mode2")
#> IGRAPH b04cbfb UN-B 10 5 --
#> + attr: name (v/c), type (v/l)
#> + edges from b04cbfb (vertex names):
#> [1] 1--a 2--b 3--c 4--d 5--e