Last active
August 29, 2015 14:08
-
-
Save Robinlovelace/ab9ca897945111695b20 to your computer and use it in GitHub Desktop.
Shrinking the Tour de France data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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