Wolfram Language

Moving Map on Event Series with Dates

MovingMap applies a function to data over specified size windows. A pure function can access values, times, boundary values and boundary times for each window, and in Version 12, it can also directly access dates when data is given as EventSeries or TimeSeries.

The event series of birthdays of American presidents (up to the year 2018).

Plot the dates.

Find the day of the week for each birthday using MovingMap on the dated stamps.

Select all presidents born on a Sunday.

Find shared birthdays, that is, which presidents celebrate their birthdays on the same day.

Related Examples

de es fr ja pt-br zh