## [1] "batter_right_handed"
## [2] "pitcher_right_handed"
## [3] "pitcher_batter_same_handed"
## [4] "cum_pitch_count_end_of_last_ab"
## [5] "ninth_or_greater_inning"
## [6] "about.inning"
## [7] "homescore_end_of_last_ab"
## [8] "awayscore_end_of_last_ab"
## [9] "last_ab_result.event_BuntGroundout"
## [10] "last_ab_result.event_BuntLineout"
## [11] "last_ab_result.event_BuntPopOut"
## [12] "last_ab_result.event_CatcherInterference"
## [13] "last_ab_result.event_CaughtStealing2B"
## [14] "last_ab_result.event_CaughtStealing3B"
## [15] "last_ab_result.event_CaughtStealingHome"
## [16] "last_ab_result.event_Double"
## [17] "last_ab_result.event_DoublePlay"
## [18] "last_ab_result.event_FieldError"
## [19] "last_ab_result.event_FieldOut"
## [20] "last_ab_result.event_FieldersChoice"
## [21] "last_ab_result.event_FieldersChoiceOut"
## [22] "last_ab_result.event_Flyout"
## [23] "last_ab_result.event_Forceout"
## [24] "last_ab_result.event_GroundedIntoDP"
## [25] "last_ab_result.event_Groundout"
## [26] "last_ab_result.event_HitByPitch"
## [27] "last_ab_result.event_HomeRun"
## [28] "last_ab_result.event_IntentWalk"
## [29] "last_ab_result.event_Lineout"
## [30] "last_ab_result.event_PassedBall"
## [31] "last_ab_result.event_Pickoff1B"
## [32] "last_ab_result.event_Pickoff2B"
## [33] "last_ab_result.event_Pickoff3B"
## [34] "last_ab_result.event_PickoffCaughtStealing2B"
## [35] "last_ab_result.event_PickoffCaughtStealingHome"
## [36] "last_ab_result.event_PickoffError1B"
## [37] "last_ab_result.event_PopOut"
## [38] "last_ab_result.event_RunnerDoublePlay"
## [39] "last_ab_result.event_RunnerOut"
## [40] "last_ab_result.event_SacBunt"
## [41] "last_ab_result.event_SacBuntDoublePlay"
## [42] "last_ab_result.event_SacFly"
## [43] "last_ab_result.event_SacFlyDoublePlay"
## [44] "last_ab_result.event_Single"
## [45] "last_ab_result.event_StolenBase2B"
## [46] "last_ab_result.event_Strikeout"
## [47] "last_ab_result.event_StrikeoutDoublePlay"
## [48] "last_ab_result.event_Triple"
## [49] "last_ab_result.event_TriplePlay"
## [50] "last_ab_result.event_Walk"
## [51] "last_ab_result.event_WildPitch"
## [52] "last_ab_result.event_NA"
## [53] "last_2_ab_result.event_BuntGroundout"
## [54] "last_2_ab_result.event_BuntLineout"
## [55] "last_2_ab_result.event_BuntPopOut"
## [56] "last_2_ab_result.event_CatcherInterference"
## [57] "last_2_ab_result.event_CaughtStealing2B"
## [58] "last_2_ab_result.event_CaughtStealing3B"
## [59] "last_2_ab_result.event_CaughtStealingHome"
## [60] "last_2_ab_result.event_Double"
## [61] "last_2_ab_result.event_DoublePlay"
## [62] "last_2_ab_result.event_FieldError"
## [63] "last_2_ab_result.event_FieldOut"
## [64] "last_2_ab_result.event_FieldersChoice"
## [65] "last_2_ab_result.event_FieldersChoiceOut"
## [66] "last_2_ab_result.event_Flyout"
## [67] "last_2_ab_result.event_Forceout"
## [68] "last_2_ab_result.event_GroundedIntoDP"
## [69] "last_2_ab_result.event_Groundout"
## [70] "last_2_ab_result.event_HitByPitch"
## [71] "last_2_ab_result.event_HomeRun"
## [72] "last_2_ab_result.event_IntentWalk"
## [73] "last_2_ab_result.event_Lineout"
## [74] "last_2_ab_result.event_PassedBall"
## [75] "last_2_ab_result.event_Pickoff1B"
## [76] "last_2_ab_result.event_Pickoff2B"
## [77] "last_2_ab_result.event_Pickoff3B"
## [78] "last_2_ab_result.event_PickoffCaughtStealing2B"
## [79] "last_2_ab_result.event_PickoffCaughtStealingHome"
## [80] "last_2_ab_result.event_PickoffError1B"
## [81] "last_2_ab_result.event_PopOut"
## [82] "last_2_ab_result.event_RunnerDoublePlay"
## [83] "last_2_ab_result.event_RunnerOut"
## [84] "last_2_ab_result.event_SacBunt"
## [85] "last_2_ab_result.event_SacBuntDoublePlay"
## [86] "last_2_ab_result.event_SacFly"
## [87] "last_2_ab_result.event_SacFlyDoublePlay"
## [88] "last_2_ab_result.event_Single"
## [89] "last_2_ab_result.event_StolenBase2B"
## [90] "last_2_ab_result.event_Strikeout"
## [91] "last_2_ab_result.event_StrikeoutDoublePlay"
## [92] "last_2_ab_result.event_Triple"
## [93] "last_2_ab_result.event_TriplePlay"
## [94] "last_2_ab_result.event_Walk"
## [95] "last_2_ab_result.event_WildPitch"
## [96] "last_2_ab_result.event_NA"
## [97] "times_through_lineup"
## [98] "third_or_more_time_thru"
## [99] "pitcher_home"
## [100] "current_ab_result.event_BuntGroundout"
## [101] "current_ab_result.event_BuntLineout"
## [102] "current_ab_result.event_BuntPopOut"
## [103] "current_ab_result.event_CatcherInterference"
## [104] "current_ab_result.event_CaughtStealing2B"
## [105] "current_ab_result.event_CaughtStealing3B"
## [106] "current_ab_result.event_CaughtStealingHome"
## [107] "current_ab_result.event_Double"
## [108] "current_ab_result.event_DoublePlay"
## [109] "current_ab_result.event_FieldError"
## [110] "current_ab_result.event_FieldOut"
## [111] "current_ab_result.event_FieldersChoice"
## [112] "current_ab_result.event_FieldersChoiceOut"
## [113] "current_ab_result.event_Flyout"
## [114] "current_ab_result.event_Forceout"
## [115] "current_ab_result.event_GroundedIntoDP"
## [116] "current_ab_result.event_Groundout"
## [117] "current_ab_result.event_HitByPitch"
## [118] "current_ab_result.event_HomeRun"
## [119] "current_ab_result.event_IntentWalk"
## [120] "current_ab_result.event_Lineout"
## [121] "current_ab_result.event_PassedBall"
## [122] "current_ab_result.event_Pickoff1B"
## [123] "current_ab_result.event_Pickoff2B"
## [124] "current_ab_result.event_Pickoff3B"
## [125] "current_ab_result.event_PickoffCaughtStealing2B"
## [126] "current_ab_result.event_PickoffCaughtStealing3B"
## [127] "current_ab_result.event_PickoffCaughtStealingHome"
## [128] "current_ab_result.event_PickoffError1B"
## [129] "current_ab_result.event_PopOut"
## [130] "current_ab_result.event_RunnerDoublePlay"
## [131] "current_ab_result.event_RunnerOut"
## [132] "current_ab_result.event_SacBunt"
## [133] "current_ab_result.event_SacBuntDoublePlay"
## [134] "current_ab_result.event_SacFly"
## [135] "current_ab_result.event_SacFlyDoublePlay"
## [136] "current_ab_result.event_Single"
## [137] "current_ab_result.event_StolenBase2B"
## [138] "current_ab_result.event_Strikeout"
## [139] "current_ab_result.event_StrikeoutDoublePlay"
## [140] "current_ab_result.event_Triple"
## [141] "current_ab_result.event_TriplePlay"
## [142] "current_ab_result.event_Walk"
## [143] "current_ab_result.event_WildPitch"
## [144] "current_ab_result.event_anyout"
## [145] "game_pk"
## [146] "game_date"
## [147] "about.atBatIndex"
## [148] "about.halfInning"
## [149] "matchup.pitcher.fullName"
## [150] "matchup.batter.fullName"
## [1] "batter_right_handed"
## [2] "pitcher_right_handed"
## [3] "pitcher_batter_same_handed"
## [4] "cum_pitch_count_end_of_last_ab"
## [5] "ninth_or_greater_inning"
## [6] "about.inning"
## [7] "homescore_end_of_last_ab"
## [8] "awayscore_end_of_last_ab"
## [9] "last_2_ab_result.event_BuntGroundout"
## [10] "last_2_ab_result.event_BuntLineout"
## [11] "last_2_ab_result.event_BuntPopOut"
## [12] "last_2_ab_result.event_CatcherInterference"
## [13] "last_2_ab_result.event_CaughtStealing2B"
## [14] "last_2_ab_result.event_CaughtStealing3B"
## [15] "last_2_ab_result.event_CaughtStealingHome"
## [16] "last_2_ab_result.event_Double"
## [17] "last_2_ab_result.event_DoublePlay"
## [18] "last_2_ab_result.event_FieldError"
## [19] "last_2_ab_result.event_FieldOut"
## [20] "last_2_ab_result.event_FieldersChoice"
## [21] "last_2_ab_result.event_FieldersChoiceOut"
## [22] "last_2_ab_result.event_Flyout"
## [23] "last_2_ab_result.event_Forceout"
## [24] "last_2_ab_result.event_GroundedIntoDP"
## [25] "last_2_ab_result.event_Groundout"
## [26] "last_2_ab_result.event_HitByPitch"
## [27] "last_2_ab_result.event_HomeRun"
## [28] "last_2_ab_result.event_IntentWalk"
## [29] "last_2_ab_result.event_Lineout"
## [30] "last_2_ab_result.event_PassedBall"
## [31] "last_2_ab_result.event_Pickoff1B"
## [32] "last_2_ab_result.event_Pickoff2B"
## [33] "last_2_ab_result.event_Pickoff3B"
## [34] "last_2_ab_result.event_PickoffCaughtStealing2B"
## [35] "last_2_ab_result.event_PickoffCaughtStealingHome"
## [36] "last_2_ab_result.event_PickoffError1B"
## [37] "last_2_ab_result.event_PopOut"
## [38] "last_2_ab_result.event_RunnerDoublePlay"
## [39] "last_2_ab_result.event_RunnerOut"
## [40] "last_2_ab_result.event_SacBunt"
## [41] "last_2_ab_result.event_SacBuntDoublePlay"
## [42] "last_2_ab_result.event_SacFly"
## [43] "last_2_ab_result.event_SacFlyDoublePlay"
## [44] "last_2_ab_result.event_Single"
## [45] "last_2_ab_result.event_StolenBase2B"
## [46] "last_2_ab_result.event_Strikeout"
## [47] "last_2_ab_result.event_StrikeoutDoublePlay"
## [48] "last_2_ab_result.event_Triple"
## [49] "last_2_ab_result.event_TriplePlay"
## [50] "last_2_ab_result.event_Walk"
## [51] "last_2_ab_result.event_WildPitch"
## [52] "last_2_ab_result.event_NA"
## [53] "times_through_lineup"
## [54] "third_or_more_time_thru"
## [55] "pitcher_home"
## [1] "current_ab_result.event_BuntGroundout"
## [2] "current_ab_result.event_BuntLineout"
## [3] "current_ab_result.event_BuntPopOut"
## [4] "current_ab_result.event_CatcherInterference"
## [5] "current_ab_result.event_CaughtStealing2B"
## [6] "current_ab_result.event_CaughtStealing3B"
## [7] "current_ab_result.event_CaughtStealingHome"
## [8] "current_ab_result.event_Double"
## [9] "current_ab_result.event_DoublePlay"
## [10] "current_ab_result.event_FieldError"
## [11] "current_ab_result.event_FieldOut"
## [12] "current_ab_result.event_FieldersChoice"
## [13] "current_ab_result.event_FieldersChoiceOut"
## [14] "current_ab_result.event_Flyout"
## [15] "current_ab_result.event_Forceout"
## [16] "current_ab_result.event_GroundedIntoDP"
## [17] "current_ab_result.event_Groundout"
## [18] "current_ab_result.event_HitByPitch"
## [19] "current_ab_result.event_HomeRun"
## [20] "current_ab_result.event_IntentWalk"
## [21] "current_ab_result.event_Lineout"
## [22] "current_ab_result.event_PassedBall"
## [23] "current_ab_result.event_Pickoff1B"
## [24] "current_ab_result.event_Pickoff2B"
## [25] "current_ab_result.event_Pickoff3B"
## [26] "current_ab_result.event_PickoffCaughtStealing2B"
## [27] "current_ab_result.event_PickoffCaughtStealing3B"
## [28] "current_ab_result.event_PickoffCaughtStealingHome"
## [29] "current_ab_result.event_PickoffError1B"
## [30] "current_ab_result.event_PopOut"
## [31] "current_ab_result.event_RunnerDoublePlay"
## [32] "current_ab_result.event_RunnerOut"
## [33] "current_ab_result.event_SacBunt"
## [34] "current_ab_result.event_SacBuntDoublePlay"
## [35] "current_ab_result.event_SacFly"
## [36] "current_ab_result.event_SacFlyDoublePlay"
## [37] "current_ab_result.event_Single"
## [38] "current_ab_result.event_StolenBase2B"
## [39] "current_ab_result.event_Strikeout"
## [40] "current_ab_result.event_StrikeoutDoublePlay"
## [41] "current_ab_result.event_Triple"
## [42] "current_ab_result.event_TriplePlay"
## [43] "current_ab_result.event_Walk"
## [44] "current_ab_result.event_WildPitch"
## [45] "current_ab_result.event_anyout"
## [1] "game_pk" "game_date"
## [3] "about.atBatIndex" "about.halfInning"
## [5] "matchup.pitcher.fullName" "matchup.batter.fullName"
## last_ab_result.event_HomeRun V1
## 1: NA 0.2218584
## 2: 0 0.2284833
## 3: 1 0.2275821
## matchup.pitcher.fullName pitcher_ab_count mean_so_after_hr_pitcher
## 1: Felix Hernandez 17 0.0000000
## 2: Aaron Sanchez 20 0.0500000
## 3: Javy Guerra 16 0.0625000
## 4: Antonio Senzatela 18 0.0000000
## 5: CC Sabathia 27 0.1111111
## ---
## 139: Josh Osich 18 0.3888889
## 140: Jack Flaherty 23 0.4782609
## 141: Ross Detwiler 19 0.3684211
## 142: Aaron Brooks 22 0.4090909
## 143: Lance Lynn 21 0.5238095
## mean_so_after_hr_pitcher_diff
## 1: -0.1870748
## 2: -0.1435484
## 3: -0.1400723
## 4: -0.1372913
## 5: -0.1251657
## ---
## 139: 0.1768889
## 140: 0.1840638
## 141: 0.2385965
## 142: 0.2461950
## 143: 0.2528496