Learn R Programming

vosonSML (version 0.35.1)

AddText.actor.mastodon: Add columns containing text data to mastodon actor network dataframes

Description

Add columns containing text data to mastodon actor network dataframes

Usage

# S3 method for actor.mastodon
AddText(net, data, ..., writeToFile = FALSE, verbose = TRUE)

Value

Network as a named list of two dataframes containing $nodes and $edges including columns containing text data.

Arguments

net

A named list of dataframes nodes and edges generated by Create.

data

A dataframe generated by Collect.

...

Additional parameters passed to function. Not used in this method.

writeToFile

Logical. Write data to file. Default is FALSE.

verbose

Logical. Output additional information. Default is TRUE.

Examples

Run this code
if (FALSE) {
# add text to an actor network ignoring references to actors at the beginning of
# comment text
net_actor <- collect_mdn |>
  Create("actor") |>
  AddText(collect_mdn)

# network
net_actor$nodes
net_actor$edges
}

Run the code above in your browser using DataLab