View source: R/get_player_combos.R
get_player_combos | R Documentation |
Pass in lineup data and get team stats when a specified grouping of players are on the court together. This can work for any 1-5 player combinations. It also takes in the functions Included/Excluded, to filter when certain players are on the court together. Recommended to filter lineups by team before calling this function rather than after.
get_player_combos(
Lineup_Data = NA,
n = 2,
min_mins = 0,
Included = NA,
Excluded = NA,
include_transition = F
)
Lineup_Data |
data frame made up of lineups collected from the get_lineups() function |
n |
an integer between 1-5 specifying player combinations |
min_mins |
a filter value to remove combinations below a minutes threshold. Using this beforehand greatly speeds up computation time. |
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 a player 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.