nba_gamerotation: *Get NBA Stats API Game Rotation*

View source: R/nba_stats_boxscore_v3.R

nba_gamerotationR Documentation

Get NBA Stats API Game Rotation

Description

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.

Details

 nba_gamerotation(game_id = "0022200021")

Value

Returns a named list of data frames: AwayTeam, HomeTeam

AwayTeam

col_name types
GAME_ID character
TEAM_ID character
TEAM_CITY character
TEAM_NAME character
PERSON_ID character
PLAYER_FIRST character
PLAYER_LAST character
IN_TIME_REAL character
OUT_TIME_REAL character
PLAYER_PTS character
PT_DIFF character
USG_PCT character

HomeTeam

col_name types
GAME_ID character
TEAM_ID character
TEAM_CITY character
TEAM_NAME character
PERSON_ID character
PLAYER_FIRST character
PLAYER_LAST character
IN_TIME_REAL character
OUT_TIME_REAL character
PLAYER_PTS character
PT_DIFF character
USG_PCT character

Author(s)

Saiem Gilani

See Also

Other NBA Boxscore Functions: nba_boxscoreadvancedv2(), nba_boxscoredefensive(), nba_boxscorefourfactorsv2(), nba_boxscorematchups(), nba_boxscoremiscv2(), nba_boxscoreplayertrackv2(), nba_boxscorescoringv2(), nba_boxscoresummaryv2(), nba_boxscoretraditionalv2(), nba_boxscoreusagev2(), nba_hustlestatsboxscore(), nba_live_boxscore()

Other NBA Lineup Functions: nba_leaguedashlineups(), nba_leaguelineupviz(), nba_shotchartlineupdetail(), nba_teamdashlineups()


hoopR documentation built on Nov. 26, 2023, 1:07 a.m.