TimStats commited on
Commit
ec645a4
·
verified ·
1 Parent(s): adaca02

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +2 -2
app.R CHANGED
@@ -80,8 +80,8 @@ test <- test %>%
80
  "PA" = Strikeout + BIP + Walk + HBP
81
  )
82
  test <- test %>%
83
- left_join(TMSchoolsB, by = c(BatterTeam = "team_abbr")) %>%
84
- left_join(TMSchoolsP, by = c(PitcherTeam = "team_abbr")) %>%
85
  mutate(PitcherAndTeam = paste0(Pitcher," - ",PTeamName)) %>%
86
  mutate(BatterAndTeam = paste0(Batter," - ",BTeamName))
87
 
 
80
  "PA" = Strikeout + BIP + Walk + HBP
81
  )
82
  test <- test %>%
83
+ left_join(TMB, by = c(BatterTeam = "team_abbr")) %>%
84
+ left_join(TMP, by = c(PitcherTeam = "team_abbr")) %>%
85
  mutate(PitcherAndTeam = paste0(Pitcher," - ",PTeamName)) %>%
86
  mutate(BatterAndTeam = paste0(Batter," - ",BTeamName))
87