add_players_from_csv-optimizer-method.Rd
Add players to optimizer from CSV
# S4 method for optimizer
add_players_from_csv(object, filepath, custom = FALSE)
An optimizer model object
Filepath location of the CSV
Set to TRUE to use user-generated CSVs with player data; the data will be
parsed using get_players_from_date_frame
Optimizer model object with slot players
filled
if (FALSE) {
opt <- create_optimizer(site = 'DRAFTKINGS', sport = 'HOCKEY', contest_type = 'CLASSIC')
opt <- add_players_from_csv(object = opt, filepath = '/Path/to/file.csv')
}