set | R Documentation |
Performs intersection (md_intersect()
) and union (md_union()
) on,
inter alia, messy date class objects.
For a more typical 'join' that retains all elements, even if duplicated,
please use md_multiset
.
e1 %intersect% e2
## S3 method for class 'mdate'
e1 %intersect% e2
e1 %union% e2
## S3 method for class 'mdate'
e1 %union% e2
e1 , e2 |
Messy date or other class objects |
A vector of the same mode for intersect
,
or a common mode for union.
%intersect%
: Find intersection of sets of messy dates
%union%
: Find intersection of sets of messy dates
as_messydate("2012-01-01..2012-01-20") %intersect% as_messydate("2012-01")
as_messydate("2012-01-01..2012-01-20") %union% as_messydate("2012-01")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.