Completes a Date or POSIXct vector.
dtt_complete(x, from = min(x), to = max(x), floor = TRUE, unique = TRUE, sort = TRUE, units = dtt_units(x), ...)
x | A Date or POSIXct vector. |
---|---|
from | A Date or POSIXct scalar of the start date. |
to | A Date or POSIXct scalar of the to date. |
floor | A flag indicating whether to floor the values. |
unique | A flag indicating whether to return distinct values. |
sort | A flag indicating whether the returned vector must be sorted. |
units | A string of the units. |
... | Unused. |
The complete and possibly unique and sorted floored vector.
dtt_completed(date_times)#> [1] FALSE