date_range.Rddate_range is a function that creates date range input into the shiny app.
When clicked on, bring up calendars that the user can click on to select dates.
date_range(data, date_col = "date", input_id)
| data | The data used to create tables to plots which are correlated to the input |
|---|---|
| date_col | The column name in the data which contain the date information. The default value is |
| input_id | The input slot that will be used to access the value. |
The date format string specifies how the date will be displayed in the browser. It allows the following values:
yy Year without century (12)
yyyy Year with century (2012)
mm Month number, with leading zero (01-12)
m Month number, without leading zero (1-12)
M Abbreviated month name
MM Full month name
dd Day of month with leading zero
d Day of month without leading zero
D Abbreviated weekday name
DD Full weekday name
dateInput(), updateDateRangeInput()
## Only run examples in interactive R sessions if (interactive()) { ui <- fluidPage( date_range(covid_raw, "daterange")) shinyApp(ui, server = function(input, output) { }) }