-
-
Save Sandy4321/3e789fab70d55d7054c1 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