AddText.activity.mastodon: Add columns containing text data to mastodon activity network...

View source: R/AddText.mastodon.R

AddText.activity.mastodonR Documentation

Add columns containing text data to mastodon activity network dataframes

Description

Add columns containing text data to mastodon activity network dataframes

Usage

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

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.

Value

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

Examples

## Not run: 
# add text to an activity network
net_activity <- collect_mdn |>
  Create("activity") |>
  AddText(collect_mdn)

# network
net_activity$nodes
net_activity$edges

## End(Not run)


vosonlab/vosonSML documentation built on July 23, 2024, 6:32 p.m.