Learn R Programming

vosonSML (version 0.29.13)

Create.actor.reddit: Create reddit actor network

Description

Creates a reddit actor network from thread comments on subreddits. Users who have commented on a thread are actor nodes and comment replies to each other are represented as directed edges.

Usage

# S3 method for actor.reddit
Create(datasource, type, ...)

Value

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

Arguments

datasource

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

type

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

...

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

Examples

Run this code
if (FALSE) {
# create a reddit actor network graph with comment text as edge attributes
actorNetwork <- redditData %>% Create("actor")

# network
# actorNetwork$nodes
# actorNetwork$edges
}

Run the code above in your browser using DataLab