set_multiplier_position-SingleGameOptim-method.Rd
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 SingleGameOptim
set_multiplier_position(object, positions)
An optimizer object
Value to set the roster size (subject to validity checks).
Updated Optimizer object
if (FALSE) {
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'))
}