AddText: Add columns containing text data to network dataframes

View source: R/AddText.R

AddTextR Documentation

Add columns containing text data to network dataframes

Description

Network is supplemented with additional social media text data applied as node or edge attributes.

Usage

AddText(net, data, ...)

add_text(net, 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.

Value

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

Note

Supports social media activity and actor networks. Refer to AddText.activity.reddit and AddText.actor.reddit for additional reddit parameters. Refer to AddText.actor.youtube for additional YouTube actor network parameters.

Examples

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

# network
net_activity$nodes
net_activity$edges

## End(Not run)


vosonSML documentation built on Aug. 16, 2022, 5:14 p.m.