View source: R/class-optimizer.R
create_optimizer | R Documentation |
Create an object of Optimizer
create_optimizer( site, sport, contest_type = "CLASSIC", players = list(), filepath = NULL )
site |
The site being used for optimization |
sport |
The sport being optimized |
contest_type |
The type of contest; determines base constraints (e.g., Classic, Showdown(DK)/Single(FD or Yahoo)). Default: CLASSIC |
players |
List of players to build lineups from (defaults to empty list) |
filepath |
Alternate method for adding players at time of creation. Passing a filepath will result in an internal call to
|
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')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.