DateReduction

DateReduction

is an option for DateHistogram that specifies the length for cyclic periods of time.

Details

  • The setting DateReductionperiod is used to indicate the period of time that will be binned, e.g. DateHistogram[data,"Day",DateReduction"Week"] gives a histogram with seven-day bins, where events on each day may come from different weeks.
  • Possible settings include:
  • Noneno periodicity
    "Hour","Day","Week",any DateValue element

Examples

Basic Examples  (1)

All events are placed in bins without any periodicity in DateHistogram:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

Use monthly bins with a yearly period:

In[3]:=
Click for copyable input
Out[3]=

Use daily bins with a monthly period:

In[4]:=
Click for copyable input
Out[4]=

See Also

DateHistogram  DateFunction  DateValue  Mod

Introduced in 2015
(10.2)