Description Usage Arguments Value Examples
Extract a thread from a path
1 | extract_thread(path, replace_limit = NULL)
|
path |
a character string that starts with /r/, which you obtain using either the download_sub_urls() or the download_keyword_urls() functions |
replace_limit |
either ‘NULL' (default) or a positive integer. This corresponds to the 'limit' argument in PRAW’s 'replace_more()' method. See here: https://praw.readthedocs.io/en/latest/code_overview/other/commentforest.html#praw.models.comment_forest.CommentForest.replace_more Currently, this is what causes getting data to be slow in some cases. |
A list with two tibbles: 1. information on nodes and 2. an edge list
1 2 3 4 | ## Not run:
df <- extract_thread("/r/rstats/comments/f5bxyk/r_will_use_stringsasfactors_false_by_default_in/")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.