Spaces:
Sleeping
Sleeping
Update app.R
Browse files
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", "
|
| 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 == "
|
| 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 == "
|
| 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) %>%
|