View source: R/getStintStats.R
getStintStats | R Documentation |
getStintStats
parses a play-by-play data frame and returns the
statistics while the players were on the court.
getStintStats(pbp, players, format_long = TRUE)
pbp |
Play-by-play data frame. |
players |
Character vector with the players on the court. |
format_long |
Logical scalar indicating how output data frame should be returned (defaults to TRUE). |
Data frame with stats on offense and defense when players were
on the court. If format_long = TRUE
there will be two rows per
game: one for offense and one for defense. If format_long = FALSE
offense and defense stats for each game will be on the same row.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.