time_frame_range: Get The Time Range

Description Usage Arguments Value See Also Examples

View source: R/shiny.R

Description

This figures out the date range based on the four different inputs: local & global timeframe selections and local & global date range selections. It is used for subset_by_date_range.

Usage

1
2
3
4
5
6
time_frame_range(
  input_local_timeframe,
  input_local_daterange,
  input_global_timeframe,
  input_global_daterange
)

Arguments

input_local_timeframe

The value of the input corresponding to the local timeframe selector.

input_local_daterange

The value of the input corresponding to the local date range selector.

input_global_timeframe

The value of the input corresponding to the global timeframe selector.

input_global_daterange

The value of the input corresponding to the global date range selector.

Value

A Date vector of length 2

See Also

Other Shiny Dashboarding: check_notify, cond_color(), cond_icon(), na_box()

Examples

1
2
3
4
5
6
7
## Not run: 
time_frame_range(
  input$timeframe, input$daterange,
  input$timeframe_global, input$daterange_global
)

## End(Not run)

wikimedia/wikimedia-discovery-polloi documentation built on Dec. 4, 2019, 2:12 p.m.