DaveM2430 commited on
Commit
3fe2f07
·
verified ·
1 Parent(s): c5e6b88

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +2 -2
app.R CHANGED
@@ -207,7 +207,7 @@ build_pitcher_stats <- function(df, min_pitches) {
207
  na.rm=TRUE),
208
  .groups = "drop"
209
  ) %>%
210
- left_join(team_lookup, by="Pitcher") %>%
211
  %>%
212
  left_join(
213
  tryCatch(compute_stuff_plus(df), error=function(e) tibble(Pitcher=character(), `Stuff+`=numeric())),
@@ -515,7 +515,7 @@ server <- function(input, output, session) {
515
  list(className = "dt-left", targets = 0:1),
516
  list(className = "dt-center", targets = 2:16),
517
  list(orderable = FALSE, targets = c(15, 16))
518
- )
519
  initComplete = JS("function(settings, json) {
520
  $('#loading_msg').hide();
521
  }")
 
207
  na.rm=TRUE),
208
  .groups = "drop"
209
  ) %>%
210
+ left_join(team_lookup, by="Pitcher")
211
  %>%
212
  left_join(
213
  tryCatch(compute_stuff_plus(df), error=function(e) tibble(Pitcher=character(), `Stuff+`=numeric())),
 
515
  list(className = "dt-left", targets = 0:1),
516
  list(className = "dt-center", targets = 2:16),
517
  list(orderable = FALSE, targets = c(15, 16))
518
+ ),
519
  initComplete = JS("function(settings, json) {
520
  $('#loading_msg').hide();
521
  }")