process.single.game (season="20122013",
gcode="20001",
rdata.folder="nhlr-data",
override.download=FALSE,
save.to.file=TRUE)
process.games (games=full.game.database(),
rdata.folder="nhlr-data",
override.download=FALSE)
retrieve.game (season="20122013",
gcode="20001",
rdata.folder="nhlr-data",
force=TRUE)
compile.all.games (mega.file="nhlscrapr-probs.RData",
output.file=mega.file,
rdata.folder="nhlr-data",
new.game.table=NULL)
process.games() runs this routine and saves all game files to disk.
retrieve.game() retrieves the processed file from disk if it exists, and if not, it runs process.single.game() first.
compile.all.games() does everything that's needed to construct the entire record. This will be fastest if all games have already been downloaded and processed, possibly in parallel.