ws_to_graph: Convert a worksheet from Crimson Hexagon to an igraph object

Description Usage Arguments Details Author(s) Examples

Description

This function converts Excel worksheet containing a Crimson Hexagon data export to a directed graph. Nodes are named after Twitter handles (including the '@' prefix) and edges point from a retweeter to a retweetee.

Usage

1

Arguments

ws

Data frame returned, for example, by get_ws()

Details

TODO: it might be handy to include the ability to build a graph from mentions as well, rather than just retweets.

Author(s)

Craig Jolley, cjolley.usaid@gmail.com

Examples

1
2
3
library(dplyr)
g <- sample_tweets %>%
    ws_to_graph()

ccjolley/cRimson documentation built on May 13, 2019, 2:16 p.m.