OwenStOnge commited on
Commit
bc6a31e
·
verified ·
1 Parent(s): 676abbb

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +2 -1
app.R CHANGED
@@ -279,7 +279,8 @@ of_oaa_setup <- function(data) {
279
  hit_location == "RF" ~ RF_Name, TRUE ~ NA_character_),
280
  success_ind = as.numeric(OutsOnPlay > 0),
281
  feet_per_second = closest_pos_dist / HangTime) %>%
282
- filter(feet_per_second <= 30, closest_pos_dist < 200)
 
283
 
284
  d <- d %>% mutate(success_ind = factor(success_ind))
285
 
 
279
  hit_location == "RF" ~ RF_Name, TRUE ~ NA_character_),
280
  success_ind = as.numeric(OutsOnPlay > 0),
281
  feet_per_second = closest_pos_dist / HangTime) %>%
282
+ filter(feet_per_second <= 30, closest_pos_dist < 200,
283
+ event_type != "Home Run")
284
 
285
  d <- d %>% mutate(success_ind = factor(success_ind))
286