Learn R Programming

wehoop (version 3.0.0)

wnba_gamerotation: Get WNBA Stats API Game Rotation

Description

Get WNBA Stats API Game Rotation

Get WNBA Stats API Game Rotation

Usage

wnba_gamerotation(game_id, league_id = "10", rotation_stat = "PLAYER_PTS", ...)

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

Same columns as the AwayTeam table above.

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.

Author

Saiem Gilani

Details

  wnba_gamerotation(game_id = "1022200034")

See Also

Other WNBA Boxscore Functions: wnba_boxscoresummaryv2(), wnba_boxscoretraditionalv2()

Other WNBA Lineup Functions: wnba_leaguedashlineups(), wnba_leaguelineupviz(), wnba_possession_lineups(), wnba_rapm(), wnba_shot_zones(), wnba_shotchartlineupdetail(), wnba_teamdashlineups()