TimStats commited on
Commit
dd806a7
·
verified ·
1 Parent(s): e7bcb79

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +2 -2
app.R CHANGED
@@ -428,8 +428,8 @@ server <- function(input, output, session) {
428
  .groups = 'drop'
429
  ) %>%
430
  mutate(
431
- across(c('xwOBA', 'xwOBACON'), ~round(., 3)), # wOBA metrics to 3 decimals
432
- across(where(is.numeric) & !c('xwOBA', 'xwOBACON'), ~round(., 1)) # everything else to 1 decimal
433
  )
434
 
435
  # Then apply filters to the summarized data
 
428
  .groups = 'drop'
429
  ) %>%
430
  mutate(
431
+ across(c('xwOBA', 'xDamage'), ~round(., 3)), # wOBA metrics to 3 decimals
432
+ across(where(is.numeric) & !c('xwOBA', 'xDamage'), ~round(., 1)) # everything else to 1 decimal
433
  )
434
 
435
  # Then apply filters to the summarized data