View source: R/Create.activity.mastodon.R
Create.activity.mastodon | R Documentation |
Creates a mastodon activity network from collected posts. Nodes are posts and directed edges represent the relationship of posts to one another.
## S3 method for class 'activity.mastodon'
Create(datasource, type, subtype = NULL, verbose = FALSE, ...)
datasource |
Collected social media data with |
type |
Character string. Type of network to be created, set to |
subtype |
Character string. Subtype of activity network to be created. Can be set to |
verbose |
Logical. Output additional information. 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 activity network
activity_net <- mastodon_data |> Create("activity")
# create a mastodon tag relations network
activity_net <- mastodon_data |> Create("activity", "tag")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.