Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@JackStat
Created October 27, 2016 03:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JackStat/8191a2bb6a8c4cbb0d2851a096ebe8e1 to your computer and use it in GitHub Desktop.
Save JackStat/8191a2bb6a8c4cbb0d2851a096ebe8e1 to your computer and use it in GitHub Desktop.
Pulls scoring summary for all games in 2016 up to week 8
#devtools::install_github("JackStat/cfb")
library(foreach)
library(cfb)
TotalWeeks = 8
allScoringSummary <- foreach(i = 1:TotalWeeks, .combine = 'rbind') %do% {
message(i)
scb <- NCAAscoreboard(2016, i)
scoringURLs <- as.character(scb$scoringURL)
scoringURLs = scoringURLs[!is.na(scoringURLs)]
foreach(k = 1:length(scoringURLs), .combine = 'rbind') %do% {
NCAAscoringSummary(scoringURLs[k])
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment