Set a player's max exposure by ID

# S4 method for optimizer
set_player_variance(object, id, variance)

Arguments

object

An optimizer object

id

The ID of a player

variance

A value of variance

Value

Updated Optimizer object

Examples

if (FALSE) {
# Set Carey Price's fpts to vary by plus-or-minus 25%
ID <- get_player_id(opt, 'Carey Price')
opt <- opt %>% set_player_variance(id = ID, variance = .25)
}