Learn R Programming

vosonSML (version 0.35.1)

Create.activity.youtube: Create YouTube activity network

Description

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.

Usage

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

Value

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

Arguments

datasource

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

type

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

...

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.

Examples

Run this code
if (FALSE) {
# create a YouTube activity network graph
activityNetwork <- youtubeData |> Create("activity")

# network
# activityNetwork$nodes
# activityNetwork$edges
}

Run the code above in your browser using DataLab