I am using selectInput() to fetch a list of months from a database and using them to show a drop down menu on shiny.
month <- dbGetQuery(con, statement =
paste( "select distinct month
from table
order by month
"))
selectInput("month",
"month",
sort(unique(month$month)),
selected = NULL)
I am then using the above input in another query:
server <- shinyServer(function(input, output) {
output$graph <- renderPlot({
ctab <- dbGetQuery(con, statement =
paste("select colum1, column2
from table
where month_of_year_name = ",input$month,"
"))
output$graph2 <- renderPlot({
})
})
The problem is that the selectInput gives the month as Jan and I'd like it to give it as 'Jan'.
