edges function

Edges

Edges

Get edges from data.frame of tweets.

gt_edges(data, source, target, ..., tl = TRUE) gt_preproc_edges(gt, func) gt_edges_bind(gt, source, target, ..., tl = TRUE) gt_co_edges(data, col, tl = TRUE) gt_co_edges_bind(gt, col, tl = TRUE)

Arguments

  • data: Data.frame of tweets, usually returned by the rtweet package.

  • source: Author of tweets.

  • target: Edges target.

  • ...: any other column name, see examples.

  • tl: Set to TRUE to convert source and target to lower case (recommended).

  • gt: An object of class graphTweets as returned by gt_edges and gt_nodes.

  • func: Function to pre-process edges, takes edges as constructed by gt_edges, includes columns named source

    target and others passed to the three dot construct.

  • col: Column containing co-mentions.

Functions

  • gt_edges: Build edges
  • gt_preproc_edges: Pre-process edges
  • gt_edges_bind: Append edges
  • Maintainer: John Coene
  • License: MIT + file LICENSE
  • Last published: 2020-01-08