Skip to content

Instantly share code, notes, and snippets.

@sriyoda
Created March 9, 2016 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sriyoda/ad6d76c8bfe58c4854d3 to your computer and use it in GitHub Desktop.
Save sriyoda/ad6d76c8bfe58c4854d3 to your computer and use it in GitHub Desktop.
trump$time <- substr(trump$time, 1, 2)
trump_t <- trump %>% group_by(time) %>% summarise(sum(retweets))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment