bind_tweets {academictwitteR} | R Documentation |
Bind information stored as JSON files
Description
This function binds information stored as JSON files. The experimental function convert_json
converts individual JSON files into either "raw" or "tidy" format.
Usage
bind_tweets(data_path, user = FALSE, verbose = TRUE, output_format = NA)
convert_json(data_file, output_format = "tidy")
Arguments
Details
By default, bind_tweets
binds into a data frame containing tweets (from data_id.json files).
If users is TRUE, it binds into a data frame containing user information (from users_id.json).
Value
a data.frame containing either tweets or user information
Examples
## Not run:
# bind json files in the directory "data" into a data frame containing tweets
bind_tweets(data_path = "data/")
# bind json files in the directory "data" into a data frame containing user information
bind_tweets(data_path = "data/", user = TRUE)
# bind json files in the directory "data" into a "tidy" data frame / tibble
bind_tweets(data_path = "data/", user = TRUE, output_format = "tidy")
## End(Not run)
[Package academictwitteR version 0.3.1 Index]