View source: R/Create.actor.reddit.R
Create.actor.reddit | R Documentation |
Creates a reddit actor network from thread comments on subreddits. Users who have commented on a thread are actor nodes and comment replies to each other are represented as directed edges.
## S3 method for class 'actor.reddit'
Create(datasource, type, ..., writeToFile = FALSE, verbose = TRUE)
datasource |
Collected social media data with |
type |
Character string. Type of network to be created, set to |
... |
Additional parameters passed to function. Not used in this method. |
writeToFile |
Logical. Write data to file. Default is |
verbose |
Logical. Output additional information. Default is |
Network as a named list of two dataframes containing $nodes
and $edges
.
## Not run:
# create a reddit actor network graph with comment text as edge attributes
actorNetwork <- redditData |> Create("actor")
# network
# actorNetwork$nodes
# actorNetwork$edges
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.