Description Usage Arguments Details Value
simulate many service games for a single server, given a number of parameters, that include probability of server winning a point on their first serve, their second serve, and probability of their first serve going in.
1 2 |
n |
number of games to simulate (default, 1000) |
p |
probability of server winning a point on the first serve |
p2 |
probability of server winning a point on their second serve |
firstServe |
probability of first serve being in |
player |
player name, default is "A" |
.progress |
plyr's progress bar |
adding a parameter ("text", or "time") to the .progress argument will cause two progress bars to show up, one after another, the first charts the simulation of many games, while the second processes these results into something more useful for users.
The function returns a large list, which can be printed, summarised, or plotted. It can also be converted to a dataframe using simDf, which contains data about the simulated sets, and games, within each simulation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.