This function takes a dataset of tweets and returns a dataset of links between users based on whether one has mentioned (e.g. @seanchrismurphy) the other. This dataset can then be used as input to igraph using graph_from_edgelist, or to the network package using the network function.
1 | create_mentions_network(tweets, closed.network = FALSE)
|
tweets |
This is the input data. |
closed.network |
Defaults to FALSE. If set to TRUE, will remove mentions of anyone who hasn't tweeted within the input dataset, effectively making it a closed network (this will remove mentions of news sources in most cases, for instance). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.