transform_tweets: Transform tweets

View source: R/transform_tweets.R

transform_tweetsR Documentation

Transform tweets

Description

Transform tweets into format for modeling. This can be saved and combined with SHAP values later. Follower growth of the xGPhilophy account is assumed to be linear per tweet, while growth of the team accounts is assumed to follow a concave curve.

Usage

transform_tweets(tweets, ..., train = TRUE, first_followers_count = 5000)

Arguments

tweets

Tweets retrieved with retrieve_tweets

...

Not currently used

train

If TRUE, then updates team follower account numbers. Otherwise, uses an extrapolated based on the last retrieved numbers.

first_followers_count

Assumed number of xGPhilosphy followers around the end of 2019. We have to make an assumption so that we can do interpolation of growth of followers.


tonyelhabr/xengagement documentation built on June 22, 2022, 5 a.m.