Skip to contents

Get NBA Stats API Win Probability PBP

Get NBA Stats API Win Probability PBP

Usage

nba_winprobabilitypbp(game_id = "0021700807", run_type = "each second", ...)

Arguments

game_id

Game ID

run_type

Run Type

...

Additional arguments passed to an underlying function like httr.

Value

Return a named list of data frames: WinProbPBP, GameInfo

WinProbPBP

col_nametypes
GAME_IDcharacter
EVENT_NUMcharacter
HOME_PCTcharacter
VISITOR_PCTcharacter
HOME_PTScharacter
VISITOR_PTScharacter
HOME_SCORE_MARGINcharacter
PERIODcharacter
SECONDS_REMAININGcharacter
HOME_POSS_INDcharacter
HOME_Gcharacter
DESCRIPTIONcharacter
LOCATIONcharacter
PCTIMESTRINGcharacter
ISVISIBLEcharacter

GameInfo

col_nametypes
GAME_IDcharacter
GAME_DATEcharacter
HOME_TEAM_IDcharacter
HOME_TEAM_ABRcharacter
HOME_TEAM_PTScharacter
VISITOR_TEAM_IDcharacter
VISITOR_TEAM_ABRcharacter
VISITOR_TEAM_PTScharacter

Details

 nba_winprobabilitypbp(game_id = '0021700807', run_type = 'each second')

See also

Other NBA PBP Functions: nba_data_pbp(), nba_live_pbp(), nba_pbps(), nba_pbp()

Author

Saiem Gilani