pbp2018: 2018 MLB pitcher data

Description Usage Format Source Examples

Description

Pitch by pitch data for select pitchers in the 2018 MLB season.

Usage

1

Format

A data frame with 84007 rows and 33 variables.

The variables are as follows:

player_name

pitcher name

game_date

game date

pitch_type

type of pitch (abbreviation)

pitch_name

type of pitch (full)

release_speed

pitch velocity at release point

events

result of play

description

result of pitch

stand

batter handedness

p_throws

pitcher handedness

bb_type

batted ball type

balls

number of balls

strikes

number of strikes

plate_x

horizontal location of pitch in strike zone from the umpire's perspective (zero is the middle of the strike zone)

plate_z

vertical location of pitch in strike zone from the umpire's perspective (zero is ground level at the point the pitch crosses the plate)

on_3b

TRUE if a runner is on third base

on_2b

TRUE if a runner is on second base

on_1b

TRUE if a runner is on first base

outs

number of outs

inning

inning number

inning_topbot

top or bottom of the inning

launch_speed

exit velocity off the bat

launch_angle

launch angle off the bat

effective_speed

"perceived velocity": pitch velocity adjusted for extension of the pitcher at the release point

release_spin_rate

spin rate (in revolutions per minute) of the pitch

release_extension

horizontal distance from pitcher's mound to release point of the pitch

estimated_ba_using_speedangle

expected batting average based on exit velocity and launch angle

estimated_woba_using_speedangle

expected weighted on-base average based on exit velocity and launch angle

at_bat_number

nth batter of the game to face the current pitcher

pitch_number

nth pitch in the current at bat

bat_score

current score for offensive team

fld_score

current score for defensive team

if_fielding_alignment

type of infield shift

of_fielding_alignment

type of outfield shift

Source

The data was obtained from Baseball Savant via a search, and subsequently subsetted.

Examples

1
2
3
summary(pbp2018$release_speed[pbp2018$player_name=="Jacob deGrom" & pbp2018$pitch_type=="FF"])

table(pbp2018$player_name, pbp2018$pitch_type)

Rkabacoff/qacr documentation built on March 20, 2021, 3:03 p.m.