create_mentions_network: Creates a mentions network

Description Usage Arguments

View source: R/Functions.R

Description

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.

Usage

1
create_mentions_network(tweets, closed.network = FALSE)

Arguments

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).


seanchrismurphy/twtools documentation built on May 29, 2019, 4:27 p.m.