Created
October 27, 2016 03:11
-
-
Save JackStat/8191a2bb6a8c4cbb0d2851a096ebe8e1 to your computer and use it in GitHub Desktop.
Pulls scoring summary for all games in 2016 up to week 8
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
#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