Created
December 1, 2015 22:36
-
-
Save abresler/2586813959edc50dc9fb to your computer and use it in GitHub Desktop.
How to get a days games
This file contains hidden or 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("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