fetch_summary | R Documentation |
Creates a data frame of match statistics for a specified list of players based on the current data provided on the ATP tour website.
fetch_summary(players, year = NULL, surface = c("All", "Clay", "Hard", "Grass"))
players |
vector of player names (partial matching attempted) |
year |
numeric indicating year or |
surface |
character indicating surface for match summary statistics |
Data frame with the columns:
total number of aces
total number of double faults
percentage of first serves in
percentage of first service points won
percentage of first service point won
number of times opponent had break point opportunity against player
percentage of break points faced that player won
number of service games played
percentage of service games played that were won
percentage of service points won
percentage of first serve return points won
percentage of second serve return points won
number of break point opportunities
percentage of break point opportunities won
number of return games played
percentage of return games won
percentage of return points won
percentage of service and return points won
player full name
Stephanie Kovalchik <s.a.kovalchik@gmail.com>
fetch_summary(c("Nadal","Ferrer"), year = 2012, surface = "Clay")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.