num_wins: Compute number of wins

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

num_winsR Documentation

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.


comperes documentation built on March 7, 2023, 7:02 p.m.