add_players_from_csv,optimizer-method | R Documentation |
Add players to optimizer from CSV
## S4 method for signature 'optimizer' add_players_from_csv(object, filepath, custom = FALSE)
object |
An optimizer model object |
filepath |
Filepath location of the CSV |
custom |
Set to TRUE to use user-generated CSVs with player data; the data will be
parsed using |
Optimizer model object with slot players
filled
## Not run: opt <- create_optimizer(site = 'DRAFTKINGS', sport = 'HOCKEY', contest_type = 'CLASSIC') opt <- add_players_from_csv(object = opt, filepath = '/Path/to/file.csv') ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.