TimStats commited on
Commit
f2a18c9
·
verified ·
1 Parent(s): 86a58cb

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +2 -2
app.R CHANGED
@@ -220,9 +220,9 @@ is_authenticated <- reactiveVal(FALSE)
220
  data <- if(hand == "All Batters") {
221
  t %>% filter(`Pitcher Name` == input$player)
222
  } else if(hand == "LHH") {
223
- t %>% filter(bhand == "L", `Pitcher Name` == input$player)
224
  } else {
225
- t %>% filter(bhand == "R", `Pitcher Name` == input$player)
226
  }
227
 
228
  data %>%
 
220
  data <- if(hand == "All Batters") {
221
  t %>% filter(`Pitcher Name` == input$player)
222
  } else if(hand == "LHH") {
223
+ t %>% filter(bside == "L", `Pitcher Name` == input$player)
224
  } else {
225
+ t %>% filter(bside == "R", `Pitcher Name` == input$player)
226
  }
227
 
228
  data %>%