preprocess_twitter_users: preprocess_twitter_users
Description
Reformat nested twitter user data (retrieved from Twitter v2 API).
Spreads out columns and reformats nested data.table
to long format.
Usage
preprocess_twitter_users(users)
Value
a data.table with reformatted user data.
Arguments
- users
a data.table with unformatted (nested user data).
Details
Take the Twitter user data that you loaded with
load_twitter_users_json and unnests the
following columns: public_metrics
and entities
.