new-rbundle-set {almanac}R Documentation

Constructor for a set-based recurrence bundle

Description

These constructors are developer focused tools that are not required for normal usage of almanac. They construct new rbundle subclasses directly from a list of existing rschedules.

Usage

new_rintersect(
  rschedules = list(),
  rdates = new_date(),
  exdates = new_date(),
  ...,
  class = character()
)

new_rsetdiff(
  rschedules = list(),
  rdates = new_date(),
  exdates = new_date(),
  ...,
  class = character()
)

new_runion(
  rschedules = list(),
  rdates = new_date(),
  exdates = new_date(),
  ...,
  class = character()
)

Arguments

rschedules

[list]

A list of rschedules.

rdates

[Date]

A vector of dates to forcibly include in the event set.

exdates

[Date]

A vector of dates to forcibly exclude from the event set.

...

[named dots]

Additional named elements added to the rbundle object.

class

[character]

An optional subclass.

Value

A new rbundle subclass.

Examples

new_runion()

x <- daily()
y <- weekly()

rschedules <- list(x, y)

new_runion(rschedules)

[Package almanac version 0.1.1 Index]