extract_thread: Extract a thread from a path

Description Usage Arguments Value Examples

View source: R/threads.R

Description

Extract a thread from a path

Usage

1
extract_thread(path, replace_limit = NULL)

Arguments

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.

Value

A list with two tibbles: 1. information on nodes and 2. an edge list

Examples

1
2
3
4
## Not run: 
df <- extract_thread("/r/rstats/comments/f5bxyk/r_will_use_stringsasfactors_false_by_default_in/")

## End(Not run)

acastroaraujo/rawrr documentation built on Aug. 25, 2020, 4:16 a.m.