preprocess_twitter_users: preprocess_twitter_users

View source: R/preprocess_twitter.R

preprocess_twitter_usersR 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.


CooRTweet documentation built on April 4, 2025, 2:25 a.m.