Description Usage Arguments Format Examples
A data set that contains play-by-play information returned by getData
1 | GameDayPlays(x)
|
x |
an object |
A GameDayPlays
object. This is a tbl_df
and
data.frame
with 62 columns. The columns are as follows:
The MLBAM id of the pitcher
The MLBAM id of the batter
The MLBAM id of the fielding team
The chronological number of the plate appearance
The inning number
Indicates which half of the inning (i.e. top or bottom)
The number of balls at the end of the plate appearance
The number of strikes at the end of the plate appearance
The number of outs at the end of the plate appearance
The result of the plate appearance (e.g. Single, Walk, Grounded Into DP)
NA
A description of the result of the plate appearance
The handedness of the batter during the plate appearance
The handedness of the pitcher
A coded description of movement of all base runners during the plate appearance
For balls in play, the MLBAM x-coordinate of where the ball is first touched. Note that 0 is the far left hand edge of the stadium image file. (NA for balls not in play)
For balls in play, the MLBAM y-coordinate of where the ball is first touched. Note that 0 is the top of the stadium image file. (NA for balls not in play)
Game type
The MLBAM home team abbreviation
The MLBAM id of the home team
The league of the home team (i.e. AL or NL)
The MLBAM away team abbreviation
The MLBAM id of the away team
The league of the away team (i.e. AL or NL)
The MLBAM park id
The name of the stadium where the game is being played
The timestamp associated withe the plate appearance
The MLBAM of the catcher
The MLBAM of the first baseman
The MLBAM of the second baseman
The MLBAM of the third baseman
The MLBAM of the shortstop
The MLBAM of the left fielder
The MLBAM of the center fielder
The MLBAM of the right fielder
The defensive postion of the current batter
The name of the current batter
The name of the current pitcher
The number of runs that were scored as a result of the plate appearance
The number of outs at the beginning of the plate appearnace
The total number of runs scored in the half of an inning
The total number of runs that have been scored in the half of an inning prior to the current plate appearance
The total number of runs that are scored in the half of an inning that were scored after the current plate appearance
Binary representation of the base runner configuration at the start of the plate appearance
Binary representation of the base runner configuration at the end of the plate appearance
For a ball in play, the MLBAM id of the fielder who first touches the baseball. (NA for balls not in play)
Binary representation of the base runner configuration at the end of the plate appearance
The MLBAM id for this game
Boolean indicating if the plate appearance was a plate appearance
Boolean indicating if the plate appearance was an at bat
Boolean indicating if the plate appearance resulted in a hit
Boolean indicating if the plate appearance resulted in a ball in play
Horizontal coordinate, in feet, of where the ball landed.
Home plate has our.x
of 0.
Vertical coordinate, in feet, of where the ball landed.
Home plate has our.y
of 0.
radial distance, in feet, of the location of the batted ball.
Home plate has r
of 0.
radial angle, in radians, of the location of the batted ball.
Home plate has theta
of 0.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.