I have data with 2 columns: transaction ID and Salesperson Name, where a row represents a transaction and the salesperson who worked on it. Most transactions have more than 1 salesperson so in that case, the transaction ID repeats to list all the salespersons.
I want to create a network viz using the network package in r but am getting stuck on how to format the data. I can get the nodes from doing a unique sort on the names, but not sure how to transform the data to get an edge list. The network is undirected.
My data looks like this:
Trans_ID | Name
--------------------
1 | Andy
1 | Ben
1 | Cindy
2 | David
2 | Eric
3 | Fabian
3 | George
4 | Hector
The real data has about 300k rows of data.


