Add players to optimizer from CSV

# S4 method for optimizer
add_players_from_csv(object, filepath, custom = FALSE)

Arguments

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 get_players_from_date_frame

Value

Optimizer model object with slot players filled

Examples

if (FALSE) {
opt <- create_optimizer(site = 'DRAFTKINGS', sport = 'HOCKEY', contest_type = 'CLASSIC')
opt <- add_players_from_csv(object = opt, filepath = '/Path/to/file.csv')
}