on_off_generator | R Documentation |
This function passes in lineup data and calculates the on/off lineup statistics for all lineup combinations of players specified. This allows users to view on/off statistics for individual players, as well as combinations of multiple players. Users can also specify if they'd like specific players to be included or excluded from all lineups in use
on_off_generator(
Players,
Lineup_Data,
Included = NA,
Excluded = NA,
include_transition = F
)
Players |
character vector of players desired to be compared with on/off |
Lineup_Data |
data frame made up of lineups collected from the get_lineups() function |
Included |
character vector of players. These players will be on the court for every lineup considered. |
Excluded |
character vector of players. These players will be off the court for every lineup considered. |
data frame with each row representing an on/off combination. Explanations of statistics found in get_lineups()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.