Skip to contents

Get ESPN NBA's Betting information

Usage

espn_nba_betting(game_id)

Arguments

game_id

Game ID

Value

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

Examples

# \donttest{
try(espn_nba_betting(game_id = 401283399))
#> $pickcenter
#> ── ESPN NBA Pickcenter Information from ESPN.com ──────────────── hoopR 1.8.0 ──
#>  Data updated: 2022-06-17 06:26:25 UTC
#> # A tibble: 4 × 32
#>   details  over_under spread provider_id provider_name          provider_priori…
#>   <chr>         <int>  <int> <chr>       <chr>                             <int>
#> 1 MEM -7.0        227     -7 45          Caesars Sportsbook (N…                1
#> 2 MEM -7.0        227     -7 1004        consensus                             0
#> 3 MEM -7.0        228     -7 1003        numberfire                            0
#> 4 MEM -7.0        228     -7 1002        teamrankings                          0
#> # … with 26 more variables: away_team_odds_favorite <lgl>,
#> #   away_team_odds_underdog <lgl>, away_team_odds_money_line <int>,
#> #   away_team_odds_spread_odds <dbl>, away_team_odds_team_id <chr>,
#> #   away_team_odds_win_percentage <dbl>, away_team_odds_average_score <dbl>,
#> #   away_team_odds_money_line_odds <dbl>, away_team_odds_spread_return <dbl>,
#> #   away_team_odds_spread_record_wins <int>,
#> #   away_team_odds_spread_record_losses <int>, …
#> 
#> $againstTheSpread
#> ── ESPN NBA Against the Spread Information from ESPN.com ──────── hoopR 1.8.0 ──
#>  Data updated: 2022-06-17 06:26:25 UTC
#> # A tibble: 2 × 6
#>   id    uid            display_name          abbreviation logo           records
#>   <chr> <chr>          <chr>                 <chr>        <chr>          <list> 
#> 1 25    s:40~l:46~t:25 Oklahoma City Thunder OKC          https://a.esp… <list> 
#> 2 29    s:40~l:46~t:29 Memphis Grizzlies     MEM          https://a.esp… <list> 
#> 
#> $predictor
#> ── ESPN NBA Predictor Information from ESPN.com ───────────────── hoopR 1.8.0 ──
#>  Data updated: 2022-06-17 06:26:25 UTC
#> # A tibble: 1 × 4
#>   home_team_id away_team_id away_team_game_projection away_team_chance_loss
#>   <chr>        <chr>        <chr>                     <chr>                
#> 1 29           25           39.4                      60.6                 
#> 
# }