I have a dataset similar to the following:
AuthorID ThreadID
1 A
2 A
1 A
2 A
2 C
3 B
1 C
4 B
4 C
4 C
where AuthorIDidentifies a specific author c ThreadID. Topics can contain posts from many authors, and authors can post in many threads.
I, after a weighted adjacency matrix in R, which I can use with the graph, shows the number of times a particular one was AuthorIDexchanged with another AuthorIDwithin ThreadID. Therefore, for this data, the matrix should look like this ( AuthorIDlike column and row headings):
1 2 3 4
1 . 3 0 1
2 . . 0 1
3 . . . 1
4 . . . .
Thanks in advance!
source
share