tidynbadata_pbp: A sample data.frame of play-by-play data

tidynbadata_pbpR Documentation

A sample data.frame of play-by-play data

Description

play-by-play data of game 47899. The data are from the perspective of the home team (NY Knicks) so that 'this' columns refer to the Knicks and 'opp' columns to the Bucks. Note that you can get play-by-play data from the same game, from the perspective of the Bucks with load_pbp(game_id = 47899, team = "Bucks')

Usage

tidynbadata_pbp

Format

a data.frame with 584 rows and 65 columns of play-by-play data from a single nba game

gs_description

a short text description of the event

jb_wonby_team

indicates who won the jump ball. Will be NA, 'this', 'opp' or 'neither'

jb_tippedtoplayer

id of player to whom jump ball was tipped

jb_this_player

id of player on reference team taking the jump ball

jb_opp_player

id of player on opponent team taking the jump ball

gs_quarter

the integer number of the quarter or overtime period (5 is first OT)

gs_quarter_seconds_elapsed

number of game seconds elapsed since start of this quarter

gs_total_seconds_elapsed

number of game seconds elapsed since start of this game

gs_this_pof_vec

a length 5 vector of players on the floor for the reference team

gs_opp_pof_vec

a length 5 vector of players on the floor for the opposing team

gs_this_pof_id

a hyphen separated string of player ids, sorted low to high, concatenated from gs_this_pof_vec

gs_opp_pof_id

a hyphen separated string of player ids, sorted low to high, concatenated from gs_opp_pof_vec

gs_seconds_until_next_event

an integer indicating how many seconds until the occurence of the next event (row) in the data. Use this column to compute playing time


kburnham/tidynbadata documentation built on Aug. 7, 2024, 12:10 a.m.