wh_collect: Collect results

Description Usage Arguments Details Value Examples

View source: R/collect.R

Description

Collect results from webhoser object.

Usage

1
2
3
4
wh_collect(wh, flatten = FALSE)

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

Arguments

wh

object of class webhoser as returned by wh_news.

flatten

whether to flatten the collected results.

Details

flatten ignores sentiment of entities.

Value

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

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
token <- <- wh_token("xXX-x0X0xX0X-00X")

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

## End(Not run)

news-r/webhoser documentation built on Aug. 1, 2019, 5:50 p.m.