Description Usage Arguments Value
View source: R/feature_matrix.R
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.
1 | head_to_head(my_data, player1, player2)
|
my_data |
input data. |
player1 |
player 1 id. |
player2 |
player 2 id. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.