create_optimizer.Rd
Create an object of Optimizer
create_optimizer(
site,
sport,
contest_type = "CLASSIC",
players = list(),
filepath = NULL
)
The site being used for optimization
The sport being optimized
The type of contest; determines base constraints (e.g., Classic, Showdown(DK)/Single(FD or Yahoo)). Default: CLASSIC
List of players to build lineups from (defaults to empty list)
Alternate method for adding players at time of creation. Passing a filepath will result in an internal call to
add_players_from_csv
. If players
is provided, filepath will be ignored.
This function is used to instantiate a new object of class optimizer
, which is the
central component of the dfsOptimizer package.
mod <- create_optimizer(site = 'DRAFTKINGS', sport = 'HOCKEY')