Generic fantasy model

model_dk_mlb(data, existing_rosters = list())

model_dk_nba(data, existing_rosters = list())

model_dk_nfl(data, existing_rosters = list())

model_fd_mlb(data, existing_rosters = list())

model_fd_nba(data, existing_rosters = list())

model_fd_nfl(data, existing_rosters = list())

model_fd_nhl(data, existing_rosters = list())

model_fd_wnba(data, existing_rosters = list())

model_fdr_mlb(data, existing_rosters = list())

model_fdr_nba(data, existing_rosters = list())

model_fdr_nfl(data, existing_rosters = list())

model_generic(data, total_salary, roster_size, max_from_team = 4,
  existing_rosters = list())

Arguments

data

data frame

existing_rosters

list of integer vectors specifying rosters to exclude

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