Creates a twitter activity network from collected tweets. Nodes are tweets and directed edges represent the relationship of tweets to one another. For example, there is a directed edge from a quote tweet towards the tweet that was quoted. Stand-alone tweets that are not replies, retweets or quote tweets have no relation to others and will be isolates.
# S3 method for activity2.twitter Create(datasource, type, rmNodeTypes = NULL, verbose = TRUE, ...)
datasource | Collected social media data with |
---|---|
type | Character string. Type of network to be created, set to |
rmNodeTypes | Character vector. List of tweet types to remove from network. Options are |
verbose | Logical. Output additional information about the network creation. Default is |
... | Additional parameters passed to function. Not used in this method. |
Network as a named list of two dataframes containing $nodes
and $edges
.