I am trying to subset a spatial data frame using an input from InputSelect in a shiny app.
outside of the app this is working :
SDF2 <- SDF1%>% subset(VAR >200)
inside the shiny app this is NOT working =>
-in the UI :
selectInput("choice", "", choices = "VAR" )
-in the Server :
InputVar<-input$choice
SDF2 <- SDF1 %>% subset(InputVar >200)
Why 1 works and 2 doesn't ?
Any hint would be really appreciated !