parse_stream: Converts Twitter stream data (JSON file) into parsed data...

Description Usage Arguments Value See Also Examples

View source: R/stream.R

Description

Converts Twitter stream data (JSON file) into parsed data frame.

Usage

1

Arguments

path

Character, name of JSON file with data collected by stream_tweets.

...

Other arguments passed on to internal data_from_stream function.

Value

A tbl of tweets data with attribute of users data

See Also

Other stream tweets: stream_tweets()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
## run and save stream to JSON file
stream_tweets(
  "the,a,an,and", timeout = 60,
  file_name = "theaanand.json",
  parse = FALSE
)

## parse stream file into tibble data frame
rt <- parse_stream("theaanand.json")

## End(Not run)

rtweet documentation built on Jan. 11, 2020, 9:11 a.m.