isOnCourt: Find if players were on the court

View source: R/isOnCourt.R

isOnCourtR Documentation

Find if players were on the court

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

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

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

ponelplay/test documentation built on April 14, 2022, 12:43 a.m.