View source: R/generic-model.r
Generic fantasy model
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | model_dk_mlb(data, existing_rosters = list())
model_dk_nascar(data, ...)
model_dk_nba(data, ...)
model_dk_nfl(data, existing_rosters = list())
model_dk_nhl(data, ...)
model_dk_pga(data, ...)
model_fd_mlb(data, existing_rosters = list())
model_fd_nascar(data, ...)
model_fd_nba(data, ...)
model_fd_nfl(data, existing_rosters = list())
model_fd_nhl(data, existing_rosters = list())
model_fd_wnba(data, ...)
model_fdr_mlb(data, existing_rosters = list())
model_fdr_nba(data, ...)
model_fdr_nfl(data, existing_rosters = list())
model_fd_pga(data, ...)
model_generic(data, total_salary, roster_size, max_from_team = 4,
existing_rosters = list(), type = c("binary", "continuous"))
|
data |
data frame |
existing_rosters |
list of integer vectors specifying rosters to exclude |
... |
extra arguments passed to |
total_salary |
maximum salary available for each lineup |
roster_size |
number of players on each lineup |
max_from_team |
maximum number of players allowed from each team |
type |
binary or continuous optimization |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.