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)
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.
gt_edges
: Build edgesgt_preproc_edges
: Pre-process edgesgt_edges_bind
: Append edges