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

View source: R/parse_stream.R

parse_streamR Documentation

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

Description

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

Usage

parse_stream(path, filtered = F)

Arguments

path

Character, name of JSON file with data collected by [stream_tweets()].

filtered

logical, indicating whether the stream to parse is filtered or not. Defaults to FALSE. This will add the filter rule variables to the data

Value

a data frame

Examples

## Not run: 
stream_tweets(timeout = 1, file_name = "stream.json", parse = FALSE)
parse_stream("stream.json")

## End(Not run)


MaelKubli/RTwitterV2 documentation built on May 26, 2023, 5:29 p.m.