set: Set operations for messy dates

Description Usage Arguments Value Functions Examples

Description

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.

Usage

1
2
3
4
5

Arguments

x, y, ...

Messy date or other class objects

Value

A vector of the same mode for intersect, or a common mode for union.

Functions

Examples

1
2
3
md_intersect(as_messydate("2012-01-01..2012-01-20"),as_messydate("2012-01"))
md_union(as_messydate("2012-01-01..2012-01-20"),as_messydate("2012-01"))
md_multiset(as_messydate("2012-01-01..2012-01-20"),as_messydate("2012-01"))

messydates documentation built on Nov. 12, 2021, 5:06 p.m.