igroffman commited on
Commit
46c9ae2
·
verified ·
1 Parent(s): 2da76c5

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +3 -3
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
- ea_pct <- round(
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