write_graphml: Write a tweet '<igraph>' to a .graphml file

Description Usage Arguments Author(s) Examples

View source: R/graphml.R

Description

Write a tweet <igraph> to a .graphml file

Usage

1
2
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

Author(s)

Brendan Knapp brendan.g.knapp@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 

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)


## End(Not run)

knapply/tweetgraph documentation built on Nov. 4, 2019, 3:54 p.m.