create_gexf: Create gexf file of mentions network for export to Gephi from...

View source: R/createGEXF.R

create_gexfR Documentation

Create gexf file of mentions network for export to Gephi from rtweet dataframe

Description

This function creates a gexf network file of a mentions network for use with Gephi software requires an rtweet dataframe as returned by get_timeline() or search_tweets() Requires rgexf which may not be available on CRAN. Use devtools::install_github("gvegayon/rgexf") to install

Usage

create_gexf(
  tweet_df,
  filepath,
  include_edge_att = FALSE,
  edge_type = "directed"
)

Arguments

tweet_df

Required. An rtweet dataframe of tweets

filepath

Required. A full filepath with file name. Extension of file should be .gexf

include_edge_att

Include edge att (status ID and Date_time). Default is FALSE to minimise Gephi processing of large networks.

edge_type

"directed", "undirected" or "mutual". default is "directed" #'@keywords twitter, rtweet, Gephi, gexf, sna

Examples

rstats <- rtweet::search_tweets("#rstats", n=100, token = NULL)
create_gexf(rstats, "~/rstats.gexf", include_edge_att = FALSE, edge_type = "undirected")

Arf9999/rtweetXtras documentation built on June 27, 2022, 5:10 a.m.