Update app.R
Browse files
app.R
CHANGED
|
@@ -428,8 +428,8 @@ server <- function(input, output, session) {
|
|
| 428 |
.groups = 'drop'
|
| 429 |
) %>%
|
| 430 |
mutate(
|
| 431 |
-
across(c('xwOBA', '
|
| 432 |
-
across(where(is.numeric) & !c('xwOBA', '
|
| 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
|