View source: R/Create.actor.mastodon.R
Create.actor.mastodon | R Documentation |
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 class 'actor.mastodon'
Create(
datasource,
type,
subtype = NULL,
inclMentions = TRUE,
verbose = FALSE,
...
)
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 |
verbose |
Logical. Output additional information about the network creation. Default is |
... |
Additional parameters passed to function. Not used in this method. |
Network as a named list of two dataframes containing $nodes
and $edges
.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.