nba_winprobabilitypbp {hoopR} | R Documentation |
Get NBA Stats API Win Probability PBP
Description
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. |
Details
nba_winprobabilitypbp(game_id = '0021700807', run_type = 'each second')
Value
Return a named list of data frames: WinProbPBP, GameInfo
WinProbPBP
col_name | types |
GAME_ID | character |
EVENT_NUM | character |
HOME_PCT | character |
VISITOR_PCT | character |
HOME_PTS | character |
VISITOR_PTS | character |
HOME_SCORE_MARGIN | character |
PERIOD | character |
SECONDS_REMAINING | character |
HOME_POSS_IND | character |
HOME_G | character |
DESCRIPTION | character |
LOCATION | character |
PCTIMESTRING | character |
ISVISIBLE | character |
GameInfo
col_name | types |
GAME_ID | character |
GAME_DATE | character |
HOME_TEAM_ID | character |
HOME_TEAM_ABR | character |
HOME_TEAM_PTS | character |
VISITOR_TEAM_ID | character |
VISITOR_TEAM_ABR | character |
VISITOR_TEAM_PTS | character |
Author(s)
Saiem Gilani
See Also
Other NBA PBP Functions:
nba_data_pbp()
,
nba_live_pbp()
,
nba_pbps()
,
nba_pbp()
[Package hoopR version 2.1.0 Index]