set_multiplier_position,SingleGameOptim-method | R Documentation |
Method for setting positions for Single Game multiplier positions (e.g., CPT in Draftkings Captain-mode). Can be used to limit the multiplier position to a user-specified set of possible positions (see examples).
## S4 method for signature 'SingleGameOptim' set_multiplier_position(object, positions)
object |
An optimizer object |
positions |
Value to set the roster size (subject to validity checks). |
Updated Optimizer object
## Not run: opt <- create_optimizer(site = 'DRAFTKINGS', sport = 'HOCKEY', contest_type = 'SHOWDOWN') opt <- add_players_from_csv(object = opt, filepath = '/Path/to/file.csv') # Default Multiplier-position options are c('C','W','D','G') # Remove D and G opt <- set_multiplier_position(object = opt, positions = c('C','W')) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.