load_twitter_users_json {CooRTweet} | R Documentation |
load_twitter_users_json
Description
Very efficient and fast way to load user information from JSON files. Wrapper of the function fload
Usage
load_twitter_users_json(data_dir, query_error_ok = TRUE)
Arguments
data_dir |
string that leads to the directory containing JSON files |
query_error_ok |
(Boolean) stop if |
Details
This function is optimized to load user data JSON files that were
collected using the academicTwittr Package (Twitter API V2).
It uses RcppSimdJson to load the JSON files, which is extremely
fast and efficient. It returns the user data as is. The only changes
are that the function renames the id
of tweets to user_id
, and
it also deduplicates the data (by user_id
).
The function expects that the individual JSON files start with user
.
Value
a data.table with all users loaded
[Package CooRTweet version 2.0.2 Index]