I have an edge list with names of organizations and their connections to other organizations. I am wondering whether there is an efficient way in R to create a table in which one column lists the outgoing nodes, and the other column contains a single string with all incoming nodes.
So basically from:
Column A | Column B |
---|---|
A | C |
A | D |
B | C |
To
Column A | Column B |
---|---|
A | C, D |
B | C |
I tried to various things with Melt and Cast but couldn't make it to work properly with strings.