getGamePlayByPlay: Get game play-by-play

View source: R/get-game-playbyplay.R

getGamePlayByPlayR Documentation

Get game play-by-play

Description

[Experimental]

Usage

getGamePlayByPlay(season_code, game_code)

Arguments

season_code

One or more season codes as obtained from getCompetitionHistory().
Examples are E2023 for Euroleague or U2023 for Eurocup 2023.

game_code

One or more game codes as obtained from getCompetitionGames().

Value

Returns a list of two elements for the chosen games and seasons

  • PlayByPlaySummary. Overall information about the games, teams involved and status (live or not)

  • PlayByPlay. Detailed information about the games, particularly NumberOfPlay and PlayType

Glossary of PlayType:

PlayType PlayInfo
2PA Missed Two Pointer
2PM Two Pointer
3PA Missed Three Pointer
3PM Three Pointer
AG Shot Rejected
AS Assist
BP Begin Period
C Coach Foul
CCH Coach Challenge
CM Foul
CMT Technical Foul
CMTI Throw-In Foul
CMU Unsportsmanlike Foul
D Def Rebound
EG End Game
EP End Period
FTA Missed Free Throw
FTM Free Throw In
FV Block
IN In
O Off Rebound
OF Offensive Foul
OUT Out
RV Foul Drawn
ST Steal
TO Turnover
TOUT Time Out
TOUT_TV TV Time Out

Reference webpage: PlayByPlay

Examples


## Not run: 

PlayByPlay = getGamePlayByPlay(season_code = c("E2023", "U2023"), game_code = 1)

PlayByPlay$PlayByPlaySummary |> head(5)

PlayByPlay$PlayByPlay |> head(5)


## End(Not run)


euroleaguer documentation built on May 29, 2024, 10:22 a.m.