Collection of functions to simulate a tennis point, game, set, tiebreak and match.
devtools::install_github("durtal/servevolleyR")
??servevolleyR
Help pages are available here, a couple of vignettes looking at two matches from Wimbledon 2015 are now available, Serena Williams vs Maria Sharapova and Federer vs Murray.
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:
library(servevolleyR)
svRshiny()
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 rlply
and ldply
into speedier dplyr
code.