Skip to content

Instantly share code, notes, and snippets.

@BillPetti
Last active May 24, 2016 02:17
Show Gist options
  • Save BillPetti/049b02276660c9f486efaab0b2019722 to your computer and use it in GitHub Desktop.
Save BillPetti/049b02276660c9f486efaab0b2019722 to your computer and use it in GitHub Desktop.
daily_batter_loop.R
require(baseballr)
require(dplyr)
dates <- data.frame(date = seq(as.Date("2016-04-05"), as.Date("2016-04-10"), by = "day"))
test <- dates %>%
group_by(date) %>%
do(daily_batter_bref(.$date, .$date)) %>%
ungroup() %>%
select(date, everything()) %>%
arrange(Name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment