View source: R/Create.activity.youtube.R
Create.activity.youtube | R Documentation |
Creates an activity network from collected YouTube video comment threads. Nodes are top-level comments, reply comments and videos. Edges are directed between the nodes and represent commenting activity.
## S3 method for class 'activity.youtube' Create(datasource, type, verbose = TRUE, ...)
datasource |
Collected social media data with |
type |
Character string. Type of network to be created, set to |
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
.
## Not run: # create a YouTube activity network graph activityNetwork <- youtubeData |> 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.