View source: R/Create.activity.reddit.R
Create.activity.reddit | R Documentation |
Creates a reddit activity network from subreddit thread comments. Nodes are comments and initial thread posts, edges form the discussion structure and signify to which comment or post a comment has been made to.
## S3 method for class 'activity.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 activity network graph
activityNetwork <- redditData |> Create("activity")
# network
# activityNetwork$nodes
# activityNetwork$edges
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.