espn_nba_pbp {hoopR}R Documentation

Get ESPN NBA PBP data

Description

Get ESPN NBA PBP data

Usage

espn_nba_pbp(game_id)

Arguments

game_id

Game ID

Value

A play-by-play data frame.

Plays

col_name types
id character
sequence_number character
text character
away_score integer
home_score integer
scoring_play logical
score_value integer
wallclock character
shooting_play logical
type_id integer
type_text character
period_number integer
period_display_value character
clock_display_value character
team_id integer
coordinate_x_raw numeric
coordinate_y_raw numeric
coordinate_x numeric
coordinate_y numeric
play_id character
athlete_id_1 integer
athlete_id_2 integer
athlete_id_3 integer
home_team_id integer
home_team_mascot character
home_team_name character
home_team_abbrev character
home_team_logo character
home_team_logo_dark character
home_team_full_name character
home_team_color character
home_team_alternate_color character
home_team_score integer
home_team_winner logical
home_team_record character
away_team_id integer
away_team_mascot character
away_team_name character
away_team_abbrev character
away_team_logo character
away_team_logo_dark character
away_team_full_name character
away_team_color character
away_team_alternate_color character
away_team_score integer
away_team_winner logical
away_team_record character
game_id integer
season integer
season_type integer
game_date Date
game_date_time POSIXct

Author(s)

Saiem Gilani

See Also

Other ESPN NBA Functions: espn_nba_betting(), espn_nba_game_all(), espn_nba_game_rosters(), espn_nba_player_box(), espn_nba_player_stats(), espn_nba_scoreboard(), espn_nba_standings(), espn_nba_team_box(), espn_nba_team_stats(), espn_nba_teams(), espn_nba_wp()

Examples


  try(espn_nba_pbp(game_id = 401071880))



[Package hoopR version 2.1.0 Index]