Write a tweet <igraph> to a .graphml file

write_graphml(g, path, na_numbers_as = -1, na_characters_as = "",
  drop_na_attrs = TRUE)

Arguments

g

<igraph> object

path

<character> scalar

na_numbers_as

<numeric> scalar indicating the value to which NA_real_s and NA_integer_ are re-coded Default: -1.

na_characters_as

<character> scalar indicating the value to which NA_character_s are re-coded. Default: "".

drop_na_attrs

<logical> scalar indicating whether

Examples

if (FALSE) { hashtag_rstats <- rtweet::search_tweets("#rstats") tweet_graph <- as_sna_igraph(tweet_df) target_file_path <- tempfile(fileext = "graphml") write_graphml(g = tweet_graph, path = target_file_path) }