get_adj_matrix: Set up an adjadency matrix

Description Usage Arguments Value Examples

Description

This function sets up an adjacency matrix from a list of interactions between Twitter users. This function can be used to set up a mention-, following- or retweet-matrix.

Usage

1
get_adj_matrix(user_list, mention_list)

Arguments

user_list

chr-vector or -list containing multiple Twitter user names

mention_list

a list of all interactions - e.g. following, retweet, mention - of one users with other users

Value

Returns an matrix containing the number of directed interactions from a user -cols- to another user -rows-

Examples

1
2
# Setup a retweet matrix
 get_adj_matrix(user_list, retweet_list)

JohMueller/twitterNet documentation built on May 29, 2019, 6:41 a.m.