powered by
Creates a mastodon actor network from posts. Mastodon users who have posted are actor nodes. The created network is directed with edges representing replies.
# S3 method for actor.mastodon Create( datasource, type, subtype = NULL, inclMentions = TRUE, ..., writeToFile = FALSE, verbose = TRUE )
Network as a named list of two dataframes containing $nodes and $edges.
$nodes
$edges
Collected social media data with "datasource" and "mastodon" class names.
"datasource"
"mastodon"
Character string. Type of network to be created, set to "actor".
"actor"
Character string. Subtype of actor network to be created. Can be set to "server". Default is NULL.
"server"
NULL
Logical. Create edges for users mentioned or tagged in posts. Default is TRUE.
TRUE
Additional parameters passed to function. Not used in this method.
Logical. Write data to file. Default is FALSE.
FALSE
Logical. Output additional information. Default is TRUE.
if (FALSE) { # create a mastodon actor network actor_net <- mastodon_data |> Create("actor") # create a mastodon server relations network actor_net <- mastodon_data |> Create("actor", "server") }
Run the code above in your browser using DataLab