Learn R Programming

vosonSML (version 0.35.1)

AddText: 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, ..., writeToFile = FALSE, verbose = TRUE)

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

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 activity network
net_activity <- collect_data |>
  Create("activity") |> AddText(collect_data)

# network
net_activity$nodes
net_activity$edges
}

Run the code above in your browser using DataLab