Creates a 2-mode network from tweets returned from the twitter search query. In this network there are two types of nodes, twitter users who authored or were mentioned in collected tweets and hashtags found within tweets. Network edges represent a users tweets that contain hashtags or mention users screen names.
# S3 method for twomode.twitter
Create(
datasource,
type,
removeTermsOrHashtags = NULL,
rmRetweets = TRUE,
verbose = TRUE,
...
)
Collected social media data with "datasource"
and "twitter"
class names.
Character string. Type of network to be created, set to "twomode"
.
Character vector. Users or hashtags to remove from the twomode network. For example,
this parameter could be used to remove the user or hashtag that was used to collect the data by removing any nodes
with matching name. Default is NULL
to remove none.
Logical. Do not process retweets in the input data. Default is TRUE
.
Logical. Output additional information about the network creation. Default is TRUE
.
Additional parameters passed to function. Not used in this method.
Network as a named list of two dataframes containing $nodes
and $edges
.