Skip to content

Instantly share code, notes, and snippets.

@abresler
Created December 1, 2015 22:36
Show Gist options
  • Save abresler/2586813959edc50dc9fb to your computer and use it in GitHub Desktop.
Save abresler/2586813959edc50dc9fb to your computer and use it in GitHub Desktop.
How to get a days games
devtools::install_github("abresler/nbastatR")
devtools::install_github("hadley/purrr")
games <-
nbastatR::get_days_games(date = "11-30-2015")
all_days_gamelogs <-
games$id.game %>%
purrr::map(function(x)
nbastatR::get_games_ids_box_score_tables(game_id = x,
tables = c('Traditional', 'Usage',
'Advanced')
)) %>%
compact %>%
bind_rows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment