Very efficient and fast way to load user information from JSON files. Wrapper of the function fload
load_twitter_users_json(data_dir, query_error_ok = TRUE)
a data.table with all users loaded
string that leads to the directory containing JSON files
(Boolean) stop if query
causes an error. Passed on
to fload (optional). Default: TRUE
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
.