Set a player's max exposure by ID

# S4 method for optimizer
set_player_max_exp(object, id, exp)

Arguments

object

An optimizer object

id

The ID of a player

exp

A value of exposure

Value

Updated Optimizer object

Examples

if (FALSE) {
# Set Carey Price to have a maximum exposure of 75%
ID <- get_player_id(opt, 'Carey Price')
opt <- opt %>% set_player_max_exp(id = ID, exp = .75)
}