nicolarighetti / CooRTweet

CooRTweet: Coordinated Networks Detection on Social Media | Detects a variety of coordinated actions on social media and outputs the network of coordinated users along with related information.
https://CRAN.R-project.org/package=CooRTweet
Other
32 stars 4 forks source link

Refactor get_coordinated_tweets #4

Closed mrwunderbar666 closed 1 year ago

mrwunderbar666 commented 1 year ago

Unpack get_coordinated_tweets into smaller public functions and re-assemble monolithic function

  1. new data loading function that loads raw json data (see #2)
  2. create separate data_wrangling() functions for different use cases (e.g., call new function "preprocess") or similar
  3. refactor data_wrangling_filter(), maybe directly include in data_wrangling()
  4. remove network plotting function and make that a separate function
mrwunderbar666 commented 1 year ago

This filter is particularly slow: https://github.com/nicolarighetti/CooRTweet/blob/0f6fa30e2910ab1f2685c8c8a960b784cc3a0083/R/data_wrangling_filter.R#L51

mrwunderbar666 commented 1 year ago

see #10