Create.actor.mastodon {vosonSML} | R 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,
...,
writeToFile = FALSE,
verbose = TRUE
)
Arguments
datasource |
Collected social media data with |
type |
Character string. Type of network to be created, set to |
subtype |
Character string. Subtype of actor network to be created. Can be set to |
inclMentions |
Logical. Create edges for users mentioned or tagged in posts. Default is |
... |
Additional parameters passed to function. Not used in this method. |
writeToFile |
Logical. Write data to file. Default is |
verbose |
Logical. Output additional information. Default is |
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)
[Package vosonSML version 0.35.1 Index]