Combine information needed for optimization.
Passed to dk_optimize().
Usage
dk_prepare_schematic(
draft_group_id,
draft_group_exp_fp = NULL,
draft_group = NULL,
rules = NULL,
include_players = NULL,
exclude_players = NULL,
exclude_questionable = FALSE
)Arguments
- draft_group_id
Sequence of digits that correspond to a draft table/group. If
draft_group_idandcontest_keyare both passed,contest_keyis ignored.- draft_group_exp_fp
A data.frame with two columns
draftable_id(found in the output ofget_draftable_players()) andexp_fp(expected fantasy points). Note that the Showdown Captain Mode game type includes two rows for each player/defense. Ifdraft_groupcontains rows not found indraft_group_exp_fp, then a warning is issued and those missing rows are dropped. IfNULL(the default), andexp_fpdoes not exist indraft_group, thenexp_fpis set equal to theppgvalue returned byget_player_list().- draft_group
Object returned by
get_draftable_players(). IfNULL(the default), then this object is fetched using thedraft_group_id. The following columns are required: draftable_id, player_id, first_name, last_name, display_name, salary, team_id, status.- rules
Object returned by
get_gametype_rules(). IfNULL(the default), rules are fetched using thedraft_group_id.- include_players
A vector of player IDs to include. If
NULL(the default), then use all players found withget_draftable_players().- exclude_players
A vector of player IDs to exclude.
- exclude_questionable
Exclude players with statuses that indicate they will not play. These include players that are questionable, doubtful, out, and injured. Default is
FALSE.
