dateInput_range: Generate a date range input

Description Usage Arguments Details

View source: R/ui_date_tool.R

Description

dateInput_range( ) will create a pair of text inputs from the the specified date variable which, when clicked on, bring up calanders that the user can click on to select the specific dates they wish to choose.

Usage

1
2
3
4
5
6
7
dateInput_range(
  inputId,
  label = "Chosen date range",
  date,
  start = min(date),
  ...
)

Arguments

inputId

The input slot that will be used to access the value.

label

Display label for the control, or NULL for no label.

date

The date input that contains the date information for the dataset. Either a Date object, or string in yyyy-mm-dd formart. Must be a date vector of at least length 2. A column from a dataset can be directly called using "$".

start

The initial start date. Either a Date object, or a string in yyyy-mm-dd format. If start is NULL, it will be reated as min(date) which is the default and the minimum date from the date variable provided will be selected.

...

The rest of the arguments that can be used have been sourced from the ?dateRangeInput and detailed below in "details":

Details

dateInput_range( ) will return a date range with chosen date values as specified by the user. The 'date“ input can directly call a date variable from a dataset with the start, end and mximum dates being automatically generated from the provided date dataset if their fields are left NULL.

The date format string specifies how the date will be displayed in the browser. It allows the following values:

The remaining arguments that can be used with dateInput_range( ) function are as follows:


etc5523-2020/r-package-assessment-samuellyu-2021 documentation built on Jan. 1, 2021, 1:13 a.m.