Create.actor.mastodon: Create mastodon actor network

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

Create.actor.mastodonR Documentation

Create mastodon actor network

Description

Creates a mastodon actor network from posts. Mastodon users who have posted are actor nodes. The created network is directed with edges representing replies.

Usage

## S3 method for class 'actor.mastodon'
Create(
  datasource,
  type,
  subtype = NULL,
  inclMentions = TRUE,
  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 "actor".

subtype

Character string. Subtype of actor network to be created. Can be set to "server". Default is NULL.

inclMentions

Logical. Create edges for users mentioned or tagged in posts. Default is TRUE.

verbose

Logical. Output additional information about the network creation. 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 actor network
actor_net <- mastodon_data |> Create("actor")

# create a mastodon server relations network
actor_net <- mastodon_data |> Create("actor", "server")

## End(Not run)


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