Learn R Programming

tigerstats (version 0.3.2)

cabrera: Miguel Cabrera

Description

PITCHf/x data on nine-time All-Star Miguel Cabrera, who is thought to be one of the best pure hitters in baseball. Covers seasons 2009 through 2012.

Arguments

Format

A data frame with 6265 observations on the following 12 variables. Each observation is a pitch to Cabrera.

season

The year of play

gamedate

Date of the game in which the pitch was thrown

pitch_type

Type of pitch thrown, as determined by a computer algorithm.

balls

Current ball count

strikes

Current strike count

speed

speed of pitch (in mph). (When crossing plate?)

px

x-coordinate of pitch (in feet, measured from center of plate)

pz

vertical coordinate of pitch (in feet above plate)

swung

Whether or not Cabrera swung at the ball. Factor with levels "no", "yes".

hitx

x-coordinate of landing point of ball (if it was hit). Relative to park.

hity

y-coordinate of landing point of ball (if it was hit). Relative to park.

hit_outcome

Outcome when ball was hit. Factor with levels E (error), H (hit), O (batter out).