inst/scripts/gids.R

# Grab new game IDs
library(pitchRx)
data(gids)
last.game <- sort(gids)[length(gids)]
last.date <- as.Date(substr(last.game, 5, 14), format = "%Y_%m_%d")
new.gids <- pitchRx:::updateGids(last.date, last.date + 371)
gids <- unique(c(gids, new.gids))
save(gids, file = "~/Desktop/github/local/pitchRx/data/gids.rda")

Try the pitchRx package in your browser

Any scripts or data that you put into this service are public.

pitchRx documentation built on May 2, 2019, 5:56 a.m.