Skip to content

Instantly share code, notes, and snippets.

@Robinlovelace
Last active August 29, 2015 14:08
Show Gist options
  • Save Robinlovelace/ab9ca897945111695b20 to your computer and use it in GitHub Desktop.
Save Robinlovelace/ab9ca897945111695b20 to your computer and use it in GitHub Desktop.
Shrinking the Tour de France data
# Take a random selection of the data
set.seed(2014)
tdft <- tdft[sample(nrow(tdft), size = 1000), ]
# Select only the variables of interest
install.packages("dplyr") # library for data manipulation
tdft <- select(tdft, lat, lon, created, text,
language, n_followers, n_tweets, user_location)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment