AddText.actor.reddit: Add columns containing text data to reddit actor network...

View source: R/AddText.R

AddText.actor.redditR Documentation

Add columns containing text data to reddit actor network dataframes

Description

Add columns containing text data to reddit actor network dataframes

Usage

## S3 method for class 'actor.reddit'
AddText(net, data, cleanText = FALSE, ...)

Arguments

net

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

data

A dataframe generated by Collect.

cleanText

Logical. Simple removal of problematic characters for XML 1.0 standard. Implemented to prevent reddit specific XML control character errors when generating graphml files. Default is FALSE.

...

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

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 actor network ignoring references to actors at the beginning of
# comment text
net_actor <- collect_rd |>
  Create("actor") |>
  AddText(collect_rd)

# network
net_actor$nodes
net_actor$edges

## End(Not run)


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