Create.activity.youtube: Create YouTube activity network

View source: R/Create.activity.youtube.R

Create.activity.youtubeR Documentation

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 class 'activity.youtube'
Create(datasource, type, 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 "activity".

verbose

Logical. Output additional information about the network creation. Default is TRUE.

...

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

Value

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

Examples

## Not run: 
# create a YouTube activity network graph
activityNetwork <- youtubeData |> Create("activity")

# network
# activityNetwork$nodes
# activityNetwork$edges

## End(Not run)


vosonSML documentation built on Aug. 16, 2022, 5:14 p.m.