Spaces:
Sleeping
Sleeping
Update app.R
Browse files
app.R
CHANGED
|
@@ -600,9 +600,9 @@ sbid <- bind_rows(
|
|
| 600 |
distinct()
|
| 601 |
#Select ACL & FCL Statcast Games
|
| 602 |
cpxid <- bind_rows(
|
| 603 |
-
mlb_schedule(season = 2025, level_ids = "
|
| 604 |
) %>%
|
| 605 |
-
|
| 606 |
cpxteamH <- cpxid %>%
|
| 607 |
select(teams_home_team_name) %>%
|
| 608 |
distinct()
|
|
@@ -665,7 +665,7 @@ server <- function(input, output, session) {
|
|
| 665 |
width = 3,
|
| 666 |
dateInput("date", "Date:"),
|
| 667 |
selectizeInput("level", "Level:",
|
| 668 |
-
c("MLB", "AAA", "FSL","College (Statcast Parks Only)", "
|
| 669 |
options = list(
|
| 670 |
placeholder = 'Select a level',
|
| 671 |
onInitialize = I('function() { this.setValue(""); }')
|
|
@@ -722,7 +722,7 @@ server <- function(input, output, session) {
|
|
| 722 |
updateSelectizeInput(session, "homeT", "Home Team:", choices = sbteamH[,1])
|
| 723 |
updateSelectizeInput(session, "awayT", "Away Team:", choices = sbteamA[,1])
|
| 724 |
}
|
| 725 |
-
if(input$level == "
|
| 726 |
updateSelectizeInput(session, "homeT", "Home Team:", choices = cpxteamH[,1])
|
| 727 |
updateSelectizeInput(session, "awayT", "Away Team:", choices = cpxteamA[,1])
|
| 728 |
}
|
|
@@ -765,7 +765,7 @@ server <- function(input, output, session) {
|
|
| 765 |
filter(game_number == input$gamenum)
|
| 766 |
pname <- pitcher_summary(pname[,6], input$date)
|
| 767 |
}
|
| 768 |
-
if(input$level == "
|
| 769 |
pname <- cpxid %>%
|
| 770 |
filter(date == input$date) %>%
|
| 771 |
filter(teams_home_team_name == input$homeT) %>%
|
|
|
|
| 600 |
distinct()
|
| 601 |
#Select ACL & FCL Statcast Games
|
| 602 |
cpxid <- bind_rows(
|
| 603 |
+
mlb_schedule(season = 2025, level_ids = "17")
|
| 604 |
) %>%
|
| 605 |
+
# filter(gameday_type == "E" | gameday_type == "P")
|
| 606 |
cpxteamH <- cpxid %>%
|
| 607 |
select(teams_home_team_name) %>%
|
| 608 |
distinct()
|
|
|
|
| 665 |
width = 3,
|
| 666 |
dateInput("date", "Date:"),
|
| 667 |
selectizeInput("level", "Level:",
|
| 668 |
+
c("MLB", "AAA", "FSL","College (Statcast Parks Only)", "AFL"),
|
| 669 |
options = list(
|
| 670 |
placeholder = 'Select a level',
|
| 671 |
onInitialize = I('function() { this.setValue(""); }')
|
|
|
|
| 722 |
updateSelectizeInput(session, "homeT", "Home Team:", choices = sbteamH[,1])
|
| 723 |
updateSelectizeInput(session, "awayT", "Away Team:", choices = sbteamA[,1])
|
| 724 |
}
|
| 725 |
+
if(input$level == "AFL"){
|
| 726 |
updateSelectizeInput(session, "homeT", "Home Team:", choices = cpxteamH[,1])
|
| 727 |
updateSelectizeInput(session, "awayT", "Away Team:", choices = cpxteamA[,1])
|
| 728 |
}
|
|
|
|
| 765 |
filter(game_number == input$gamenum)
|
| 766 |
pname <- pitcher_summary(pname[,6], input$date)
|
| 767 |
}
|
| 768 |
+
if(input$level == "AFL"){
|
| 769 |
pname <- cpxid %>%
|
| 770 |
filter(date == input$date) %>%
|
| 771 |
filter(teams_home_team_name == input$homeT) %>%
|