Spaces:
Running
Running
Update app.R
Browse files
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.
|
| 102 |
-
PlateLocHeight >= 1.
|
| 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),
|