set_player_variance,optimizer-method | R Documentation |
Set a player's max exposure by ID
## S4 method for signature 'optimizer' set_player_variance(object, id, variance)
object |
An optimizer object |
id |
The ID of a player |
variance |
A value of variance |
Updated Optimizer object
## Not run: # 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) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.