vosonSML (version 0.29.10)

Create.actor.twitter: Create twitter actor network

Description

Creates a twitter actor network from tweets returned from the twitter search query. Twitter users who have tweeted / retweeted or been mentioned in a tweet are actor nodes. The created network is directed with edges of different types representing retweets, quote tweets, mentions and replies to other users. Users who have tweeted without relations to other users will appear in the network graph as isolate nodes.

Usage

# S3 method for actor.twitter
Create(datasource, type, verbose = TRUE, ...)

Arguments

datasource

Collected social media data with "datasource" and "twitter" class names.

type

Character string. Type of network to be created, set to "actor".

verbose

Logical. Output additional information about the network creation. Default is TRUE.

...

Additional parameters passed to function. Not used in this method.

Value

Network as a named list of two dataframes containing $nodes and $edges.

Examples

Run this code
# NOT RUN {
# create a twitter actor network graph and output to console additional information 
# during network creation (verbose)
actorNetwork <- twitterData %>% Create("actor")

# network
# actorNetwork$nodes
# actorNetwork$edges
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab