Spaces:
Running
Running
Update app.R
Browse files
app.R
CHANGED
|
@@ -169,10 +169,10 @@ build_pitcher_stats <- function(df, min_pitches, scores, portal) {
|
|
| 169 |
'+baseball+twitter" target="_blank">🐦 Search</a>')
|
| 170 |
) %>%
|
| 171 |
filter(!is.na(Name), trimws(Name) != "", grepl(" ", trimws(Name))) %>%
|
| 172 |
-
select(Name, Level, Team,
|
| 173 |
`FB Velo`, `Zone%`, `Strike%`, `K's`, `BB's`, `K/BB`,
|
| 174 |
-
`Whiff%`, `Chase%`, `Hard Hit%`, `Stuff+`, `Location+`
|
| 175 |
-
|
| 176 |
arrange(desc(Pitches))
|
| 177 |
}
|
| 178 |
|
|
@@ -460,7 +460,7 @@ server <- function(input, output, session) {
|
|
| 460 |
pageLength = 25,
|
| 461 |
lengthMenu = c(25, 50, 100),
|
| 462 |
scrollX = TRUE,
|
| 463 |
-
order = list(list(
|
| 464 |
orderMulti = FALSE,
|
| 465 |
dom = "lfrtip",
|
| 466 |
columnDefs = list(
|
|
|
|
| 169 |
'+baseball+twitter" target="_blank">🐦 Search</a>')
|
| 170 |
) %>%
|
| 171 |
filter(!is.na(Name), trimws(Name) != "", grepl(" ", trimws(Name))) %>%
|
| 172 |
+
select(Name, Level, Team, Portal, `Plot`, `Twitter`, Pitches, ERA, FIP, WHIP,
|
| 173 |
`FB Velo`, `Zone%`, `Strike%`, `K's`, `BB's`, `K/BB`,
|
| 174 |
+
`Whiff%`, `Chase%`, `Hard Hit%`, `Stuff+`, `Location+`
|
| 175 |
+
) %>%
|
| 176 |
arrange(desc(Pitches))
|
| 177 |
}
|
| 178 |
|
|
|
|
| 460 |
pageLength = 25,
|
| 461 |
lengthMenu = c(25, 50, 100),
|
| 462 |
scrollX = TRUE,
|
| 463 |
+
order = list(list(6, "desc")),
|
| 464 |
orderMulti = FALSE,
|
| 465 |
dom = "lfrtip",
|
| 466 |
columnDefs = list(
|