constr_team_stack: Adds Same-Team stacks

View source: R/constraints.R

constr_team_stackR Documentation

Adds Same-Team stacks

Description

Adds Same-Team stacks

Usage

constr_team_stack(
  model,
  players,
  positions,
  opt_positions = NULL,
  nstacks = 1,
  within_lines = FALSE
)

Arguments

model

Model object

players

List of player objects

positions

Positions for that should be stacked within a single team

opt_positions

Optional positions – used to add OR-level positions (e.g., stack of QB, WR & (TE | RB))

nstacks

Number of stacks to try to include (Default is 1)

within_lines

Logical. Whether to generate stacks within lines (works for hockey and nothing else)


anthonyshook/dfsOptimizer documentation built on Jan. 4, 2023, 11:36 a.m.