Skip to contents

Creates a YouTube actor network from comment threads on YouTube videos. Users who have made comments to a video (top-level comments) and users who have replied to those comments are actor nodes. The comments are represented as directed edges between the actors. The video id is also included as an actor node, representative of the videos publisher with top-level comments as directed edges towards them.

Usage

# S3 method for class 'actor.youtube'
Create(datasource, type, ..., writeToFile = FALSE, verbose = TRUE)

Arguments

datasource

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

type

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

...

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

writeToFile

Logical. Write data to file. Default is FALSE.

verbose

Logical. Output additional information. Default is TRUE.

Value

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

Examples

if (FALSE) { # \dontrun{
# create a YouTube actor network graph
actorNetwork <- youtubeData |> Create("actor")

# network
# actorNetwork$nodes
# actorNetwork$edges
} # }