head_to_head: Head to head performance

Description Usage Arguments Value

View source: R/feature_matrix.R

Description

Calculates the number of matches won/loss against each other. However, if players have never played each other both outputs are set to 0.5.

Usage

1
head_to_head(my_data, player1, player2)

Arguments

my_data

input data.

player1

player 1 id.

player2

player 2 id.

Value

Vector with two values, first, the percentage of games player 1 beat player 2 and second, the percentage of games player 2 beat player 1.


ss15859/tennis.wta documentation built on Jan. 24, 2021, 12:46 a.m.