I was try to draw a network or connection in R studio. I found an useful package and the information as follows, http://stats.idre.ucla.edu/r/faq/how-can-i-manage-and-plot-social-network-data/
The post started with a data table. The format is as follows,
V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 V12 V13 V14 V15 V16 V17 V18 V19 V20
1 0 0 1 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0
2 0 0 0 0 1 1 0 0 0 1 0 0 0 0 0 0 0 0 0 1
3 0 1 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 1 0 0
Here is my question, my data starts with pairs.
V1;V22
V1;V24
V2;V5
V2;V6
V2;V10
V2;V20
V2;V21
V3;V2
V3;V5
V3;V7
Is there a way to format it into a data table or matrix in R like the first one ? The direction information does not matter.