Collection of functions to simulate a tennis point, game, set, tiebreak and match.
I have added a shiny app, I think I've ironed out all the bugs, so this app is available in the master branch (having previously been kept in the shiny branch)
To run the shiny app:
The shiny app allows users to simulate 1000 service games for two players, 500 sets and 500 matches, a screenshot of the app is shown below:
Comments/suggestions to improve code, and speed up some of the functions would be welcomed, if possible turning
plyr code that uses
ldply into speedier