Get ESPN NBA's Betting information

espn_nba_betting(game_id)

Arguments

game_id

Game ID

Value

Returns a named list of data frames: pickcenter, againstTheSpread, predictor_df

Examples

# \donttest{
try(espn_nba_betting(game_id = 401283399))
#> $pickcenter
#>    details over_under spread provider_id                   provider_name
#> 1 MEM -7.0        227     -7          45 Caesars Sportsbook (New Jersey)
#> 2 MEM -7.0        227     -7        1004                       consensus
#> 3 MEM -7.0        228     -7        1003                      numberfire
#> 4 MEM -7.0        228     -7        1002                    teamrankings
#>   provider_priority away_team_odds_favorite away_team_odds_underdog
#> 1                 1                   FALSE                    TRUE
#> 2                 0                   FALSE                    TRUE
#> 3                 0                   FALSE                    TRUE
#> 4                 0                   FALSE                    TRUE
#>   away_team_odds_money_line away_team_odds_spread_odds away_team_odds_team_id
#> 1                       235                    -110.00                     25
#> 2                       226                    -109.00                     25
#> 3                       220                      61.95                     25
#> 4                       220                    -110.00                     25
#>   away_team_odds_win_percentage away_team_odds_average_score
#> 1                            NA                           NA
#> 2                         67.00                           NA
#> 3                         38.12                        107.6
#> 4                            NA                        111.1
#>   away_team_odds_money_line_odds away_team_odds_spread_return
#> 1                             NA                           NA
#> 2                             NA                           NA
#> 3                          38.12                        0.183
#> 4                             NA                           NA
#>   away_team_odds_spread_record_wins away_team_odds_spread_record_losses
#> 1                                NA                                  NA
#> 2                                NA                                  NA
#> 3                                NA                                  NA
#> 4                                33                                  19
#>   away_team_odds_spread_record_pushes away_team_odds_spread_record_summary
#> 1                                  NA                                 <NA>
#> 2                                  NA                                 <NA>
#> 3                                  NA                                 <NA>
#> 4                                   3                              33-19-3
#>   home_team_odds_favorite home_team_odds_underdog home_team_odds_money_line
#> 1                    TRUE                   FALSE                      -275
#> 2                    TRUE                   FALSE                      -276
#> 3                    TRUE                   FALSE                      -270
#> 4                    TRUE                   FALSE                      -270
#>   home_team_odds_spread_odds home_team_odds_team_id
#> 1                    -110.00                     29
#> 2                    -111.00                     29
#> 3                      35.12                     29
#> 4                    -114.00                     29
#>   home_team_odds_win_percentage home_team_odds_average_score
#> 1                            NA                           NA
#> 2                         33.00                           NA
#> 3                         61.88                       110.79
#> 4                            NA                       117.90
#>   home_team_odds_money_line_odds home_team_odds_spread_return
#> 1                             NA                           NA
#> 2                             NA                           NA
#> 3                          61.88                       -0.329
#> 4                             NA                           NA
#>   home_team_odds_spread_record_wins home_team_odds_spread_record_losses
#> 1                                NA                                  NA
#> 2                                NA                                  NA
#> 3                                NA                                  NA
#> 4                                38                                  19
#>   home_team_odds_spread_record_pushes home_team_odds_spread_record_summary
#> 1                                  NA                                 <NA>
#> 2                                  NA                                 <NA>
#> 3                                  NA                                 <NA>
#> 4                                   0                              38-19-0
#> 
#> $againstTheSpread
#>   id            uid          display_name abbreviation
#> 1 25 s:40~l:46~t:25 Oklahoma City Thunder          OKC
#> 2 29 s:40~l:46~t:29     Memphis Grizzlies          MEM
#>                                                logo records
#> 1 https://a.espncdn.com/i/teamlogos/nba/500/okc.png    NULL
#> 2 https://a.espncdn.com/i/teamlogos/nba/500/mem.png    NULL
#> 
#> $predictor_df
#>   home_team_id away_team_id away_team_game_projection away_team_chance_loss
#> 1           29           25                      39.4                  60.6
#> 
# }