preprocess_twitter_users {CooRTweet}R Documentation

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)

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.

Value

a data.table with reformatted user data.


[Package CooRTweet version 2.0.2 Index]