R/get-game-points.R

Defines functions getGamePoints

Documented in getGamePoints

#' Get game points
#'
#' `r lifecycle::badge('experimental')`
#'
#' @inheritParams .inheritParams
#'
#' @return Returns scoring information of each player for the chosen games and
#' seasons (subset of play-by-play data).
#' In particular:
#' - **NumberOfPlay**. Reference id of the action (useful for join with results
#' of `getPlayByPlay`)
#' - **CoordX** and **CoordY**. Spatial coordinates of the shot
#' - **Zone**. Area of the court of the shot
#'
#' Reference webpage: [PlayByPlay](<https://www.euroleaguebasketball.net/euroleague/game-center/2023-24/crvena-zvezda-meridianbet-belgrade-ldlc-asvel-villeurbanne/E2023/1/#play-by-play>)
#'
#' @examples
#'
#' \dontrun{
#'
#' getGamePoints(season_code = c("E2023", "U2023"), game_code = 1)
#'
#' }
#'
#' @name getGamePoints
#' @rdname getGamePoints
#' @export

getGamePoints <- function(season_code, game_code){
  .iterate(.getGamePoints, season_code, game_code)
}

Try the euroleaguer package in your browser

Any scripts or data that you put into this service are public.

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