Learn R Programming

vosonSML (version 0.26.3)

Create.actor.youtube: Create youtube actor network

Description

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 actor.youtube
Create(datasource, type, writeToFile = FALSE,
  ...)

Arguments

datasource

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

type

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

writeToFile

Logical. Save network data to a file in the current working directory. Default is FALSE.

...

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

Value

Named list containing generated network as igraph object $graph.

Examples

Run this code
# NOT RUN {
# create a youtube actor network graph
actorNetwork <- youtubeData %>% Create("actor", writeToFile = TRUE)

# igraph object
# actorNetwork$graph
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab