View source: R/fetch_slam_pbp.R
fetch_slam_pbp | R Documentation |
This function extracts historical point-by-point data for Grand Slam events
fetch_slam_pbp(event, year)
event |
Character value of slam and one of: 'ausopen', 'wimbledon', 'usopen', or 'frenchopen' |
year |
Numeric year |
This has been tested for 2017. Previous years may not be available as data is archived or site domains have changed.
data frame of point by point results
PointServer. Numeric indicator of player who is serving
PointWinner. Numeric indicator of player who won the point
Set. Numeric of set number
Game. Numeric of game number
Time. Elapsed time at start of point (hh:mm:ss)
Ace. Numeric indicator if server made and ace
Winner. Numeric indicator if point ended with a winner
DoubleFault. Numeric indicator if point ended in double fault
UnforcedError. Numeric indicator if point ended in an unforced error
NetPoint. Numeric indicator if point was a net point
WinnerShotType. Character of type of shot for winner (F or B)
ServerError. Logical if server made an error
ReceiverError. Logical if receiver made an error
SpeedMPH. Numeric of MPH of serve
ServeNumber. Numeric indicator of first or second serve
BreakPointWon. Numeric indicator if break point was won
BreakPointOpportunity. Numeric indicator if had a break point opportunity
GameWinner. Numeric if point ended in game winner and for which player
ForcedError. Numeric of whether point ended in forced error
MatchCode. Identifier of the match
Round. Numeric value of round (1 = First, 7 = Final)
ServerName. Character of server's name
Player1. Character of Player 1 name
Player2. Character of PLayer 2 name
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.