Create.activity.mastodon: Create mastodon activity network

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

Create.activity.mastodonR Documentation

Create mastodon activity network

Description

Creates a mastodon activity network from collected posts. Nodes are posts and directed edges represent the relationship of posts to one another.

Usage

## S3 method for class 'activity.mastodon'
Create(datasource, type, subtype = NULL, verbose = FALSE, ...)

Arguments

datasource

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

type

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

subtype

Character string. Subtype of activity network to be created. Can be set to "tag". Default is NULL.

verbose

Logical. Output additional information. Default is FALSE.

...

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 mastodon activity network
activity_net <- mastodon_data |> Create("activity")

# create a mastodon tag relations network
activity_net <- mastodon_data |> Create("activity", "tag")

## End(Not run)


vosonlab/vosonSML documentation built on April 28, 2024, 6:26 a.m.