Skip to contents

Get NBA Stats API Game Rotation

Get NBA Stats API Game Rotation

Usage

nba_gamerotation(game_id, league_id = "00", rotation_stat = "PLAYER_PTS", ...)

Arguments

game_id

Game ID

league_id

League ID

rotation_stat

Rotation stat to provide details on: PLAYER_PTS, PT_DIFF, USG_PCT

...

Additional arguments passed to an underlying function like httr.

Value

Returns a named list of data frames: AwayTeam, HomeTeam

AwayTeam

col_nametypesdescription
GAME_IDcharacterUnique game identifier.
TEAM_IDcharacterUnique team identifier.
TEAM_CITYcharacterTeam city or region (e.g. 'Las Vegas').
TEAM_NAMEcharacterFull team display name (e.g. 'Las Vegas Aces').
PERSON_IDcharacterUnique player identifier (V3 endpoints).
PLAYER_FIRSTcharacter
PLAYER_LASTcharacter
IN_TIME_REALcharacter
OUT_TIME_REALcharacter
PLAYER_PTScharacter
PT_DIFFcharacter
USG_PCTcharacterUsage percentage (0-1).

HomeTeam

col_nametypesdescription
GAME_IDcharacterUnique game identifier.
TEAM_IDcharacterUnique team identifier.
TEAM_CITYcharacterTeam city or region (e.g. 'Las Vegas').
TEAM_NAMEcharacterFull team display name (e.g. 'Las Vegas Aces').
PERSON_IDcharacterUnique player identifier (V3 endpoints).
PLAYER_FIRSTcharacter
PLAYER_LASTcharacter
IN_TIME_REALcharacter
OUT_TIME_REALcharacter
PLAYER_PTScharacter
PT_DIFFcharacter
USG_PCTcharacterUsage percentage (0-1).

Details

 nba_gamerotation(game_id = "0022200021")

Author

Saiem Gilani