AddText.actor.youtube | R Documentation |
Text comments are added to the network as node attributes.
Text comments are added to the network as edge attributes. References to actors are detected at the beginning of comments and edges redirected to that actor instead if they differ from the top-level comment author.
## S3 method for class 'activity.youtube' AddText(net, data, ...) ## S3 method for class 'actor.youtube' AddText(net, data, repliesFromText = FALSE, atRepliesOnly = TRUE, ...)
net |
A named list of dataframes |
data |
A dataframe generated by |
... |
Additional parameters passed to function. Not used in this method. |
repliesFromText |
Logical. If comment text for an edge begins with |
atRepliesOnly |
Logical. Comment |
Network as a named list of two dataframes containing $nodes
and $edges
including columns
containing text data.
Network as a named list of two dataframes containing $nodes
and $edges
including columns
containing text data.
## Not run: # add text to an activity network net_activity <- collect_yt |> Create("activity") |> AddText(collect_yt) # network net_activity$nodes net_activity$edges ## End(Not run) ## Not run: # add text to an actor network ignoring references to actors at # the beginning of comment text net_actor <- collect_yt |> Create("actor") |> AddText(collect_yt, repliesFromText = FALSE) # network net_actor$nodes net_actor$edges ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.