isOnCourt: Find if players were on the court

Description Usage Arguments Value Examples

View source: R/isOnCourt.R

Description

isOnCourt finds if a player or a set of players is on the court for each event of play-by-play data with lineup information.

Usage

1
isOnCourt(pbp, players)

Arguments

pbp

A play-by-play data frame

players

A character vector with the nemes of the players

Value

Logical vector indicating whether the specified players were on the court at each event of the play-by-play data frame.

Examples

1
2
data("samplepbp")
isOnCourt(samplepbp, players = c("FERNANDEZ, RUDY", "AYON, GUSTAVO"))

solmos/euroleaguer documentation built on Jan. 30, 2022, 3:16 p.m.