make_lineup {SwimmeR} | R Documentation |
Determine optimal entries against a given opponent lineup
Description
Determine optimal entries against a given opponent lineup
Usage
make_lineup(
df,
op_df,
point_values,
result_col,
events = NULL,
max_entries = NULL,
max_ind_entries = NULL
)
Arguments
df |
a data frame of times for the team to be entered. Must contain
column |
op_df |
a data frame containing the opponent lineup. Must contain
column |
point_values |
either a recognized string or a list of numeric values
containing the points awarded by place. Recognized strings are
|
result_col |
the name of a column, present in both |
events |
a list of events. If no list is entered then |
max_entries |
the number of entries a team is permitted per race. usually half the number of lanes in the competition pool |
max_ind_entries |
the number of indivdual events a given athlete may enter |
Value
a data frame of optimal entries based on df
and op_df