reshape_tweets {CooRTweet}R Documentation

reshape_tweets

Description

Reshape twitter data for coordination detection.

Usage

reshape_tweets(
  tweets,
  intent = c("retweets", "hashtags", "urls", "urls_domains", "cotweet"),
  drop_retweets = TRUE,
  drop_replies = TRUE,
  drop_hashtags = FALSE
)

Arguments

tweets

a named list of Twitter data (output of preprocess_tweets)

intent

the desired intent for analysis.

drop_retweets

Option passed to intent = "cotweet". When analysing tweets based on text similarity, you can choose to drop all tweets that are retweets. Default: TRUE

drop_replies

Option passed to intent = "cotweet". When analysing tweets based on text similarity, you can choose to drop all tweets that are replies to other tweets. Default: TRUE

drop_hashtags

Option passed to intent = "cotweet". You can choose to remove all hashtags from the tweet texts. Default: FALSE

Details

This function takes the pre-processed Twitter data (output of preprocess_tweets) and reshapes it for coordination detection (detect_groups). You can choose the intent for reshaping the data. Use "retweets" to detect coordinated retweeting behaviour; "hashtags" for coordinated usage of hashtags; "urls" to detect coordinated link sharing behaviour; "urls_domain" to detect coordinated link sharing behaviour at the domain level. "cotweet" to detect coordinated cotweeting behaviour (accounts posting same text). The output of this function is a reshaped data.table that can be passed to detect_groups.

Value

a reshaped data.table


[Package CooRTweet version 2.0.2 Index]