Collect results from webhoser object.

wh_collect(wh, flatten = FALSE)

# S3 method for webhoser
wh_collect(wh, flatten = FALSE)

Arguments

wh

object of class webhoser as returned by wh_news.

flatten

whether to flatten the collected results.

Value

nested data.frame if flatten = FALSE. See official documentation

Details

flatten ignores sentiment of entities.

Examples

# NOT RUN {
token <- <- wh_token("xXX-x0X0xX0X-00X")

token %>%
  wh_news(q = "R programming language") %>%
  wh_paginate(p = 1) %>%
  wh_collect -> rstats
# }