num_wins: Compute number of wins

Description Usage Arguments

View source: R/head-to-head.R

Description

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

Usage

1
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.


echasnovski/comperes documentation built on Oct. 22, 2018, 9:25 p.m.