mirror of
https://github.com/dylanbenzi/hurricane_normalization_app.git
synced 2026-07-30 05:08:57 +00:00
fix merge conflicts
This commit is contained in:
+28
-2
@@ -81,6 +81,8 @@ latest_normalized_losses <- get_latest_aggregate_losses()
|
||||
|
||||
all_conus_landfalls <- get_all_conus_landfalls()
|
||||
|
||||
all_lf_type_storms <- get_all_lf_type_landfalls()
|
||||
|
||||
storm_selection <- reactiveValues(
|
||||
storm_year = NULL,
|
||||
storm_name = NULL,
|
||||
@@ -1057,6 +1059,30 @@ Column {data-width=300}
|
||||
```{r}
|
||||
# Calculator - Input
|
||||
# TODO: add data population and compute
|
||||
#observeEvent(input$stormYear, {
|
||||
# stormsByChosenYear <- loss_storms[loss_storms$storm_year == input$stormYear, ]
|
||||
#
|
||||
# stormsByYear <- loss_storms %>% filter(storm_year == input$stormYear)
|
||||
#
|
||||
# updateSelectInput(
|
||||
# session,
|
||||
# "stormName",
|
||||
# choices = stormsByYear$storm_name,
|
||||
# selected = NULL
|
||||
# )
|
||||
#})
|
||||
observeEvent(input$impact_storm_year, {
|
||||
stormsByChosenYear <- all_lf_type_storms[all_lf_type_storms$storm_year == input$impact_storm_year, ]
|
||||
|
||||
stormsByYear <- all_lf_type_storms %>% filter(storm_year == input$impact_storm_year)
|
||||
|
||||
updateSelectInput(
|
||||
session,
|
||||
"impact_storm_name",
|
||||
choices = stormsByYear$storm_name,
|
||||
selected = NULL
|
||||
)
|
||||
})
|
||||
|
||||
div(
|
||||
h6("Storm Selector"),
|
||||
@@ -1069,13 +1095,13 @@ div(
|
||||
selectInput(
|
||||
"impact_storm_year",
|
||||
label = NULL,
|
||||
choices = 1926,
|
||||
choices = all_lf_type_storms$storm_year,
|
||||
width = "100%"
|
||||
),
|
||||
selectInput(
|
||||
"impact_storm_name",
|
||||
label = NULL,
|
||||
choices = "GREAT MIAMI",
|
||||
choices = NULL,
|
||||
width = "100%"
|
||||
),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user