Function to accompany num_wins
and num_wins2
in h2h_funs. May be useful
for outer usage.
num_wins(score_1, score_2, half_for_draw = FALSE, na.rm = TRUE)
Vector of scores for first player.
Vector of scores for second player.
Use TRUE
to add half the matchups with draws.
Use TRUE
to not count pair of scores with at least one NA
.