on_off_generator: On-Off Comparison Function

on_off_generatorR Documentation

On-Off Comparison Function

Description

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

Usage

on_off_generator(
  Players,
  Lineup_Data,
  Included = NA,
  Excluded = NA,
  include_transition = F
)

Arguments

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.

Value

data frame with each row representing an on/off combination. Explanations of statistics found in get_lineups()


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