I am trying to convert a data frame from an online forum into a social network, however I don't know how to transform the data into an adjacency matrix/edge list needed for network analysis.
My code is as follows:
library(igraph)
graph.data.2002 <- as.matrix(data.2002[,2:3])
g.2002 <- graph.data.frame(graph.data.2002, directed=FALSE)
plot(g.2002, vertex.size = 1, vertex.label=NA)
I am using R for analysis. The current problem is that authors are linked to each other through the ThreadID, however when doing a network analysis, it includes the ThreadID as a node. Ideally i'd like an adjacency matrix / edge list that shows a 1 if an author interacts with all author on the same thread.
(First time posting, so let me know if there's anything that is missing/not proper)
Currently the data is as follows:
ThreadID AuthorID
659289 193537
432269 136196
572531 170305
230003 32359
459059 47875
635953 181593
235116 51993