View source: R/preprocess_twitter.R
preprocess_twitter_users | R Documentation |
Reformat nested twitter user data (retrieved from Twitter v2 API).
Spreads out columns and reformats nested data.table
to long format.
preprocess_twitter_users(users)
users |
a data.table with unformatted (nested user data). |
Take the Twitter user data that you loaded with
load_twitter_users_json and unnests the
following columns: public_metrics
and entities
.
a data.table with reformatted user data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.