Matches athletes into events again, this time vs. the output of
make_lineup_helper
. For example if Team A has six breaststrokers at
57.00, 58.00, 59.00 and three 1:00.00s and Team B has three breaststrokers,
all 1:01.00 then following make_lineup_helper
Team A's entries will be
the three 1:00.00s because they're sufficient to win.
make_lineup_helper_2(
i,
df_helper,
in_progress_entries_df,
events_competed_helper = Events_Competed,
max_entries_helper = max_entries,
max_ind_entries_helper = max_ind_entries
)
a data frame containing entries updated to be as powerful as possible
a sequential list of numbers incremented by 1. Used to index function.
a data frame of all times to be entered for a given team.
Must contain column Event
with the same event naming convention as
op_df
, a column with name matching result_col
containing times
or diving scores, and a column called Name
containing athlete names
a data frame containing the output of
make_lineup_helper
, which is the minimum power set of entries
a list of lists containing all the events a given athlete is competing in. Sub-lists are named with the athlete name.
a numeric value denoting the maximum number of athletes a team may enter in a given event
a numeric value denoting the maximum number of individual events that may be entered by a single athlete
Here though Team A's three 1:00.00s will be replaced by their 57.00, 58.00
and 59.00 breaststrokers. These entries are "overpowered" but better reflect
an actual set of entries. Not using make_lineup_helper_2
often
results in a team's best athletes not competing