construct_graph: Create a graph file from a single Reddit thread

Description Usage Arguments Value Examples

Description

Create a graph file from a single Reddit thread

Usage

1
construct_graph(content_data, plot = TRUE, write_to = NA)

Arguments

content_data

A data frame produced by reddit_content command

plot

A logical parameter indicating whether a graph is to be plotted or no (TRUE by default). Note that the root node corresponds to the thread itself rather than any of the comments.

write_to

A character string specifying the path and file name where a graph object will be saved. The file must end with an extension such as *.gml. The following formats are allowed: edgelist, pajek, ncol,lgl, graphml, dimacs, gml, dot", leda.

Value

A graph object

Examples

1
2
3
4
5
6
## Not run: 
my_url = "reddit.com/r/web_design/comments/2wjswo/design_last_reordering_the_web_design_process/"
url_data = reddit_content(my_url)
graph_object = construct_graph(url_data)

## End(Not run)


Search within the RedditExtractoR package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.