igroffman commited on
Commit
9814f9f
·
verified ·
1 Parent(s): dd146f8

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +1 -1
app.R CHANGED
@@ -99,7 +99,7 @@ process_dataset <- function(df) {
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),
 
99
  WhiffIndicator = ifelse(PitchCall == "StrikeSwinging", 1, 0),
100
  StrikeZoneIndicator = ifelse(
101
  PlateLocSide >= -0.83 & PlateLocSide <= 0.83 &
102
+ PlateLocHeight >= 1.5 & PlateLocHeight <= 3.38, 1, 0
103
  ),
104
  SwingIndicator = ifelse(PitchCall %in% c("StrikeSwinging","FoulBallNotFieldable","FoulBall","InPlay"), 1, 0),
105
  BIPind = ifelse(PitchCall == "InPlay" & TaggedHitType != "Bunt", 1, 0),