Skip to contents

Get ESPN NBA team box scores

Usage

espn_nba_team_box(game_id)

Arguments

game_id

Game ID

Value

A team boxscore data frame

Team

col_nametypes
game_idinteger
seasoninteger
season_typeinteger
game_dateDate
game_date_timePOSIXct
team_idinteger
team_uidcharacter
team_slugcharacter
team_locationcharacter
team_namecharacter
team_abbreviationcharacter
team_display_namecharacter
team_short_display_namecharacter
team_colorcharacter
team_alternate_colorcharacter
team_logocharacter
team_home_awaycharacter
team_scoreinteger
team_winnerlogical
assistsinteger
blocksinteger
defensive_reboundsinteger
fast_break_pointscharacter
field_goal_pctnumeric
field_goals_madeinteger
field_goals_attemptedinteger
flagrant_foulsinteger
foulsinteger
free_throw_pctnumeric
free_throws_madeinteger
free_throws_attemptedinteger
largest_leadcharacter
offensive_reboundsinteger
points_in_paintcharacter
stealsinteger
team_turnoversinteger
technical_foulsinteger
three_point_field_goal_pctnumeric
three_point_field_goals_madeinteger
three_point_field_goals_attemptedinteger
total_reboundsinteger
total_technical_foulsinteger
total_turnoversinteger
turnover_pointscharacter
turnoversinteger
opponent_team_idinteger
opponent_team_uidcharacter
opponent_team_slugcharacter
opponent_team_locationcharacter
opponent_team_namecharacter
opponent_team_abbreviationcharacter
opponent_team_display_namecharacter
opponent_team_short_display_namecharacter
opponent_team_colorcharacter
opponent_team_alternate_colorcharacter
opponent_team_logocharacter
opponent_team_scoreinteger

Author

Saiem Gilani

Examples

# \donttest{
  try(espn_nba_team_box(game_id = 401071880))
#> ── ESPN NBA Team Box Information from ESPN.com ────────────────── hoopR 2.1.0 ──
#>  Data updated: 2023-11-28 22:10:06 UTC
#> # A tibble: 2 × 57
#>     game_id season season_type game_date  game_date_time      team_id team_uid  
#>       <int>  <int>       <int> <date>     <dttm>                <int> <chr>     
#> 1 401071880   2019           2 2019-04-07 2019-04-07 21:00:00       3 s:40~l:46…
#> 2 401071880   2019           2 2019-04-07 2019-04-07 21:00:00      23 s:40~l:46…
#> # ℹ 50 more variables: team_slug <chr>, team_location <chr>, team_name <chr>,
#> #   team_abbreviation <chr>, team_display_name <chr>,
#> #   team_short_display_name <chr>, team_color <chr>,
#> #   team_alternate_color <chr>, team_logo <chr>, team_home_away <chr>,
#> #   team_score <int>, team_winner <lgl>, assists <int>, blocks <int>,
#> #   defensive_rebounds <int>, fast_break_points <chr>, field_goal_pct <dbl>,
#> #   field_goals_made <int>, field_goals_attempted <int>, …
# }