event-sets: Combine events

Description Usage Arguments

Description

Set operations between events are what make the grammar of schedules so powerful. For example, on_mday(25) & on_wday("Mon") takes the intersection of these two events, resulting in a new event that only occurs when the 25th day of the month is also a Monday.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
event_intersect(x, y)

event_union(x, y)

event_diff(x, y)

event_invert(x)

## S3 method for class 'event'
e1 & e2

## S3 method for class 'event'
e1 | e2

## S3 method for class 'event'
e1 - e2

## S3 method for class 'event'
!x

Arguments

x, y, e1, e2

[event]

Events to perform a set operation on.


DavisVaughan/almanac3 documentation built on Oct. 30, 2019, 5:59 a.m.