r - How to create bipartite network in igraph with duplicate vertices names -
i want create bipartite network connects nfl teams colleges drafted players from. have 1955 rows in data - 1 row each player. have 2 csv files (edge.csv , node.csv). edge data set such:
team college arizona alabama arizona alabama arizona arizona st. arizona arizona st. arizona auburn
and node data set such:
team player no. type arizona 1 true arizona b 2 true arizona c 3 true arizona d 4 true arizona e 5 true
the other variables in node data age, position, games played, games started, weight, height, birthdate, pro years played, team drafted, round drafted, overall pick, year drafted.
and added colleges team column starting @ row 1956 , filled in type false, other variables across na.
when try convert these files graph in rstudio, keep getting error:
error in graph.data.frame(edge.df, node.df, directed = false) : duplicate vertex names
which assume because names of teams , colleges repeat, network, unavoidable , entire purpose of looking @ data. there way fix this?
Comments
Post a Comment