comperes (version 0.2.7)

num_wins: Compute number of wins

Description

Function to accompany num_wins and num_wins2 in h2h_funs. May be useful for outer usage.

Usage

num_wins(score_1, score_2, half_for_draw = FALSE, na.rm = TRUE)

Arguments

score_1

Vector of scores for first player.

score_2

Vector of scores for second player.

half_for_draw

Use TRUE to add half the matchups with draws.

na.rm

Use TRUE to not count pair of scores with at least one NA.