rtweet (version 0.3.7)

parse_stream: parse_stream

Description

parse_stream

Usage

parse_stream(file_name, clean_tweets = TRUE, as_double = FALSE)

Arguments

file_name
name of file to be parsed. NOTE: if file was created via stream_tweets, then it will end in ".json" (see example below)
clean_tweets
logical indicating whether to remove non-ASCII characters in text of tweets. defaults to TRUE.
as_double
logical indicating whether to handle ID variables as double (numeric) class. By default, this is set to FALSE, meaning ID variables are treated as character vectors. Setting this to TRUE can provide performance (speed and memory) boost but can also lead to issues when printing and saving, depending on the format.

Value

Parsed tweets data with users data attribute.

Examples

Run this code
## Not run: 
# stream_tweets(q = "", file_name = "tw", parse = FALSE)
# tw <- parse_stream("tw.json")
# tw
# ## End(Not run)

Run the code above in your browser using DataCamp Workspace