Create.activity.reddit: Create reddit activity network

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

Create.activity.redditR Documentation

Create reddit activity network

Description

Creates a reddit activity network from subreddit thread comments. Nodes are comments and initial thread posts, edges form the discussion structure and signify to which comment or post a comment has been made to.

Usage

## S3 method for class 'activity.reddit'
Create(datasource, type, verbose = TRUE, ...)

Arguments

datasource

Collected social media data with "datasource" and "reddit" 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 reddit activity network graph
activityNetwork <- redditData |> Create("activity")

# network
# activityNetwork$nodes
# activityNetwork$edges

## End(Not run)


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