isOnCourt | R Documentation |
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.
isOnCourt(pbp, players)
pbp |
A play-by-play data frame |
players |
A character vector with the nemes of the players |
Logical vector indicating whether the specified players were on the court at each event of the play-by-play data frame.
data("samplepbp") isOnCourt(samplepbp, players = c("FERNANDEZ, RUDY", "AYON, GUSTAVO"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.