I have a column in my data frame which is nothing but the combination of year and months
Yearmonth
----------
200912
201001
201002
201003
201004
201005
.
.
.
.
I need a slider in my R shiny dashboard which goes from min value of this column to max but in increments of values in the column.
So for example, I'd like my slider to go from 200912 to 201001 to 201002 etc all the way to the maximum value.
I've already tried this but in that case, my step is 1 so I get all intermediate values between the values.
ui <- fluidPage(
titlePanel("censusVis"),
sidebarLayout(
sidebarPanel(
sliderInput("month",
"Month:",
min = min(Yearmonth),
max = max(Yearmonth),
value =min(Yearmonth),
step = 1),
),
mainPanel(
)
)
)
Can someone help me over here? I've very recently started using Shiny!