Spaces:
Sleeping
Sleeping
Update app.R
Browse files
app.R
CHANGED
|
@@ -205,7 +205,7 @@ ui <- fluidPage(
|
|
| 205 |
sidebarLayout(
|
| 206 |
sidebarPanel(
|
| 207 |
width = 2,
|
| 208 |
-
|
| 209 |
selectizeInput("level", "Level:", c("MLB", "AAA", "FSL", "College (Statcast Parks Only)", "Draft League","AFL")),
|
| 210 |
actionButton("submit", "Get Dashboard"),
|
| 211 |
downloadButton("download_summary", "Download Summary"),
|
|
@@ -258,7 +258,7 @@ server <- function(input, output, session) {
|
|
| 258 |
}
|
| 259 |
|
| 260 |
schedule <- data()
|
| 261 |
-
schedule <- schedule[schedule$date == input$date, ]
|
| 262 |
games <- data.frame(
|
| 263 |
"Batter Name" = character(), "Batter ID" = numeric(), "Pitcher Name" = character(), "Pitcher ID" = numeric(),
|
| 264 |
"result" = character(), "description" = character(), "pitch_name" = character(), "des" = character(),
|
|
|
|
| 205 |
sidebarLayout(
|
| 206 |
sidebarPanel(
|
| 207 |
width = 2,
|
| 208 |
+
dateRangeInput("date", "Date:"),
|
| 209 |
selectizeInput("level", "Level:", c("MLB", "AAA", "FSL", "College (Statcast Parks Only)", "Draft League","AFL")),
|
| 210 |
actionButton("submit", "Get Dashboard"),
|
| 211 |
downloadButton("download_summary", "Download Summary"),
|
|
|
|
| 258 |
}
|
| 259 |
|
| 260 |
schedule <- data()
|
| 261 |
+
schedule <- schedule[schedule$date >= input$date[1] & schedule$date <= input$date[2], ]
|
| 262 |
games <- data.frame(
|
| 263 |
"Batter Name" = character(), "Batter ID" = numeric(), "Pitcher Name" = character(), "Pitcher ID" = numeric(),
|
| 264 |
"result" = character(), "description" = character(), "pitch_name" = character(), "des" = character(),
|