bind_tweets | R Documentation |
This function binds information stored as JSON files. The experimental function convert_json
converts individual JSON files into either "raw" or "tidy" format.
bind_tweets(data_path, user = FALSE, verbose = TRUE, output_format = NA) convert_json(data_file, output_format = "tidy")
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).
a data.frame containing either tweets or user information
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.