igroffman commited on
Commit
dd146f8
·
verified ·
1 Parent(s): 16f57b1

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +2 -2
app.R CHANGED
@@ -98,8 +98,8 @@ process_dataset <- function(df) {
98
  NA, ExitSpeed),
99
  WhiffIndicator = ifelse(PitchCall == "StrikeSwinging", 1, 0),
100
  StrikeZoneIndicator = ifelse(
101
- PlateLocSide >= -0.95*12 & PlateLocSide <= 0.95*12 &
102
- PlateLocHeight >= 1.6*12 & PlateLocHeight <= 3.5*12, 1, 0
103
  ),
104
  SwingIndicator = ifelse(PitchCall %in% c("StrikeSwinging","FoulBallNotFieldable","FoulBall","InPlay"), 1, 0),
105
  BIPind = ifelse(PitchCall == "InPlay" & TaggedHitType != "Bunt", 1, 0),
 
98
  NA, ExitSpeed),
99
  WhiffIndicator = ifelse(PitchCall == "StrikeSwinging", 1, 0),
100
  StrikeZoneIndicator = ifelse(
101
+ PlateLocSide >= -0.83 & PlateLocSide <= 0.83 &
102
+ PlateLocHeight >= 1.5 & PlateLocHeight <= 3.5, 1, 0
103
  ),
104
  SwingIndicator = ifelse(PitchCall %in% c("StrikeSwinging","FoulBallNotFieldable","FoulBall","InPlay"), 1, 0),
105
  BIPind = ifelse(PitchCall == "InPlay" & TaggedHitType != "Bunt", 1, 0),