TimStats commited on
Commit
a2824a2
·
verified ·
1 Parent(s): 7138090

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +12 -1
app.R CHANGED
@@ -206,7 +206,7 @@ ui <- fluidPage(
206
  sidebarPanel(
207
  width = 2,
208
  dateInput("date", "Date:"),
209
- selectizeInput("level", "Level:", c("MLB", "AAA", "FSL", "College (Statcast Parks Only)", "Futures Game")),
210
  actionButton("submit", "Get Dashboard"),
211
  downloadButton("download_summary", "Download Summary"),
212
  selectizeInput("pitcherf", "Pitcher Pitch Level Stuff", c("")),
@@ -238,6 +238,17 @@ server <- function(input, output, session) {
238
  data(mlb_schedule(season = season, level_ids = "22"))
239
  } else if (input$level == "Futures Game"){
240
  data(mlb_schedule(season = season, level_ids = "21"))
 
 
 
 
 
 
 
 
 
 
 
241
  }
242
 
243
  schedule <- data()
 
206
  sidebarPanel(
207
  width = 2,
208
  dateInput("date", "Date:"),
209
+ selectizeInput("level", "Level:", c("MLB", "AAA", "FSL", "College (Statcast Parks Only)", "Futures Game","AFL")),
210
  actionButton("submit", "Get Dashboard"),
211
  downloadButton("download_summary", "Download Summary"),
212
  selectizeInput("pitcherf", "Pitcher Pitch Level Stuff", c("")),
 
238
  data(mlb_schedule(season = season, level_ids = "22"))
239
  } else if (input$level == "Futures Game"){
240
  data(mlb_schedule(season = season, level_ids = "21"))
241
+ } else if (input$level == "AFL") {
242
+ sbid <- mlb_schedule(2024,17)
243
+ sbid <- sbid %>%
244
+ filter(teams_away_team_name == "Glendale Desert Dogs" |
245
+ teams_away_team_name == "Mesa Solar Sox" |
246
+ teams_away_team_name == "Peoria Javelinas" |
247
+ teams_away_team_name == "Salt River Rafters" |
248
+ teams_away_team_name == "Scottsdale Scorpions" |
249
+ teams_away_team_name == "Surprise Saguaros") %>%
250
+ filter(gameday_type == "E")
251
+ data(sbid)
252
  }
253
 
254
  schedule <- data()