Aggregate

dtt_aggregate(x, units = dtt_units(x))

Arguments

x

A Date or POSIXct vector.

units

A string of the units to aggregate by.

Value

The floored, unique Date or POSIXct vector.

Examples

dtt_aggregate(dates)
#> [1] "2000-01-01" "1899-12-31" "1972-04-29"