TimStats commited on
Commit
deae93c
·
verified ·
1 Parent(s): 279f5c8

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +3 -3
app.R CHANGED
@@ -456,7 +456,7 @@ ui <- fluidPage(
456
  width = 3,
457
  dateInput("date", "Date:"),
458
  selectizeInput("level", "Level:",
459
- c("MLB", "AAA", "FSL", "College (Statcast Parks Only)"),
460
  options = list(
461
  placeholder = 'Select a level',
462
  onInitialize = I('function() { this.setValue(""); }')
@@ -495,7 +495,7 @@ server <- function(input, output, session) {
495
  updateSelectizeInput(session, "homeT", "Home Team:", choices = mlbteamH[,1])
496
  updateSelectizeInput(session, "awayT", "Away Team:", choices = mlbteamA[,1])
497
  }
498
- if(input$level == "College (Statcast Parks Only)"){
499
  updateSelectizeInput(session, "homeT", "Home Team:", choices = sbteamH[,1])
500
  updateSelectizeInput(session, "awayT", "Away Team:", choices = sbteamA[,1])
501
  }
@@ -530,7 +530,7 @@ server <- function(input, output, session) {
530
  filter(game_number == input$gamenum)
531
  pname <- pitcher_summary(pname[,6], input$date)
532
  }
533
- if(input$level == "College (Statcast Parks Only)"){
534
  pname <- sbid %>%
535
  filter(date == input$date) %>%
536
  filter(teams_home_team_name == input$homeT) %>%
 
456
  width = 3,
457
  dateInput("date", "Date:"),
458
  selectizeInput("level", "Level:",
459
+ c("MLB", "AAA", "FSL", "AFL"),
460
  options = list(
461
  placeholder = 'Select a level',
462
  onInitialize = I('function() { this.setValue(""); }')
 
495
  updateSelectizeInput(session, "homeT", "Home Team:", choices = mlbteamH[,1])
496
  updateSelectizeInput(session, "awayT", "Away Team:", choices = mlbteamA[,1])
497
  }
498
+ if(input$level == "AFL"){
499
  updateSelectizeInput(session, "homeT", "Home Team:", choices = sbteamH[,1])
500
  updateSelectizeInput(session, "awayT", "Away Team:", choices = sbteamA[,1])
501
  }
 
530
  filter(game_number == input$gamenum)
531
  pname <- pitcher_summary(pname[,6], input$date)
532
  }
533
+ if(input$level == "AFL"){
534
  pname <- sbid %>%
535
  filter(date == input$date) %>%
536
  filter(teams_home_team_name == input$homeT) %>%