DaveM2430 commited on
Commit
c18b609
·
verified ·
1 Parent(s): 36add79

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +4 -4
app.R CHANGED
@@ -169,10 +169,10 @@ build_pitcher_stats <- function(df, min_pitches, scores, portal) {
169
  '+baseball+twitter" target="_blank">&#x1F426; Search</a>')
170
  ) %>%
171
  filter(!is.na(Name), trimws(Name) != "", grepl(" ", trimws(Name))) %>%
172
- select(Name, Level, Team, Pitches, Portal, ERA, FIP, WHIP,
173
  `FB Velo`, `Zone%`, `Strike%`, `K's`, `BB's`, `K/BB`,
174
- `Whiff%`, `Chase%`, `Hard Hit%`, `Stuff+`, `Location+`,
175
- `Plot`, `Twitter`) %>%
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(3, "desc")),
464
  orderMulti = FALSE,
465
  dom = "lfrtip",
466
  columnDefs = list(
 
169
  '+baseball+twitter" target="_blank">&#x1F426; 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(