combine: Combine multiple 'datey', 'durationy' or 'datey_interval'...

combineR Documentation

Combine multiple datey, durationy or datey_interval vectors

Description

Combines (flattens) datey, durationy or datey_interval into a single vector.

All arguments must have the same class, i.e. all dateys, all durationys or all datey_intervals.

If the first element in c(...) is not a datey, durationy or datey_interval then this method will not be called. For instance, c(NA, datey("2000-01-01.0")) results in c(NA_integer_, 1068720000L).

Usage

## S3 method for class 'datey'
c(..., recursive = FALSE)

## S3 method for class 'durationy'
c(..., recursive = FALSE)

## S3 method for class 'datey_interval'
c(..., recursive = FALSE)

Arguments

...

The items to combine.

recursive

Unused.

Value

c() returns a datey, durationy or datey_interval depending on the first argument.

See Also

datey, durationy, datey_interval, subset

Examples

  c(datey(2000:2019), datey("2020-01-01.0"))

datey documentation built on July 14, 2026, 5:06 p.m.