get_player_combos: Functiont o get player combos

View source: R/get_player_combos.R

get_player_combosR Documentation

Functiont o get player combos

Description

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.

Usage

get_player_combos(
  Lineup_Data = NA,
  n = 2,
  min_mins = 0,
  Included = NA,
  Excluded = NA,
  include_transition = F
)

Arguments

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.

Value

data frame with each row representing a player combination. Explanations of statistics found in get_lineups()


jflancer/bigballR documentation built on March 1, 2025, 3:57 a.m.