gt_graph {graphTweets} | R Documentation |
Graph
Description
Build igraph
object.
Usage
gt_graph(gt)
Arguments
gt |
An object of class |
Value
An object of class igraph
.
Examples
# simulate dataset
tweets <- data.frame(
text = c("I tweet @you about @him",
"I tweet @me about @you"),
screen_name = c("me", "him"),
retweet_count = c(19, 5),
status_id = c(1, 2),
stringsAsFactors = FALSE
)
tweets %>%
gt_edges(text, screen_name, status_id) %>%
gt_nodes() %>%
gt_graph() -> net
[Package graphTweets version 0.5.3 Index]