Spaces:
Running
Running
Update app.R
Browse files
app.R
CHANGED
|
@@ -1333,9 +1333,9 @@ calculate_tableau_header_stats <- function(pitcher_df) {
|
|
| 1333 |
fp_k_pct <- ifelse(fp_pitches > 0,
|
| 1334 |
round(100 * sum(pitcher_df$FPSindicator, na.rm = TRUE) / fp_pitches, 0), 0)
|
| 1335 |
|
| 1336 |
-
|
| 1337 |
-
(sum(EarlyIndicator, na.rm = TRUE) + sum(AheadIndicator, na.rm = TRUE)) /
|
| 1338 |
-
sum(PAindicator, na.rm = TRUE) * 100,
|
| 1339 |
1
|
| 1340 |
)
|
| 1341 |
|
|
|
|
| 1333 |
fp_k_pct <- ifelse(fp_pitches > 0,
|
| 1334 |
round(100 * sum(pitcher_df$FPSindicator, na.rm = TRUE) / fp_pitches, 0), 0)
|
| 1335 |
|
| 1336 |
+
ea_pct <- round(
|
| 1337 |
+
(sum(pitcher_df$EarlyIndicator, na.rm = TRUE) + sum(pitcher_df$AheadIndicator, na.rm = TRUE)) /
|
| 1338 |
+
sum(pitcher_df$PAindicator, na.rm = TRUE) * 100,
|
| 1339 |
1
|
| 1340 |
)
|
| 1341 |
|