2017-06-13 50 views
-1

要選擇的一段時間,我用下面的sliderInput:修改sliderInput傳說

SliderInput

在下面的「傳奇」,我想只顯示在這種情況下,每五天日期,以便「2016年6月1日」,「2016年6月6日」,「2016年6月11日」,「2016年6月16日」等等......

我沒有發現任何可能的做到這一點文檔或論壇上。 任何幫助,將不勝感激。 預先感謝

回答

1

https://shiny.rstudio.com/reference/shiny/latest/sliderInput.html

step  

指定在滑塊每個可選擇的值之間的時間間隔(如果NULL,啓發式被用來確定步長)。 If the values are dates, step is in days;如果這些值是時間(POSIXt),則步驟以秒爲單位。

+0

也許我的問題不是很清楚,我希望能夠選擇任何日期,我只是想改變欄下方顯示。 據我瞭解,一步削弱我可以選擇的值,我希望能夠他們選擇的任何。 – arnino

+0

也許你應該使用https://shiny.rstudio.com/reference/shiny/latest/dateInput.html,而不是你的滑塊我知道這是不是你問什麼,但它的命運更好地與日期格式使用 –