Created
April 14, 2016 15:55
-
-
Save githoov/6994ba01ed02f8297cfa3e20bd0aeab7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# query: https://metanew.looker.com/x/HBhS99t | |
# median pickup time | |
df <- read.csv(file = "~/Downloads/pickups.csv", header = TRUE) | |
names(df) <- c("id", "month", "pickup_time") | |
ddply(df, .(month), summarize, median_duration = median(pickup_time, na.rm = TRUE)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment