Description Usage Arguments Value
Gets players current chances of winning point based on score at end
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | get_win_prob(
player1.score,
player2.score,
player1.games,
player2.games,
player1.sets,
player2.sets,
player1.serve.won,
player1.serve.points,
player2.serve.won,
player2.serve.points,
player1.serve.prob,
player2.serve.prob,
player1.won,
player1.serving = T,
format
)
|
player1.score |
Player points won at the start of current point |
player2.score |
Player points won at the start of current point |
player1.games |
Player number of games won in the current set |
player2.games |
Player number of games won in the current set |
player1.sets |
Player sets won in the current match |
player2.sets |
Player sets won in the current match |
player1.serve.won |
Player service points won in the current match |
player1.serve.points |
Player service points played in the current match |
player2.serve.won |
Player service points won in the current match |
player2.serve.points |
Player service points played in the current match |
player1.serve.prob |
Player expected probability of winning on serve from |
player2.serve.prob |
Player expected probability of winning on serve from |
player1.won |
Logical (TRUE or FALSE) whether player 1 won the current point |
player1.serving |
Logical (TRUE or FALSE) whether player 1 served the current point |
format. |
Character description of match format ('bestof3', 'laver', 'bestof5', 'doubles') |
data frame of player 1 and player 2 win probs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.