Completes date/time vector.
dtt_complete(x, ...)
# S3 method for Date
dtt_complete(
x,
from = min(x),
to = max(x),
units = "days",
unique = TRUE,
sort = TRUE,
...
)
# S3 method for POSIXct
dtt_complete(
x,
from = min(x),
to = max(x),
units = "seconds",
unique = TRUE,
sort = TRUE,
...
)
# S3 method for hms
dtt_complete(
x,
from = min(x),
to = max(x),
units = "seconds",
unique = TRUE,
sort = TRUE,
...
)
A date/time vector.
Unused.
A date/time scalar of the start.
A date/time scalar of the end.
A string of the time units. The possible values are "secs", "minutes", "hours", "days" or "weeks".
A flag specifying whether to only return unique values.
A flag specifying whether to sort the vector.
The completed date/time vector.
dtt_complete(Date)
: Complete a Date sequence vector
dtt_complete(POSIXct)
: Complete a POSIXct sequence vector
dtt_complete(hms)
: Complete a hms sequence vector
Other complete:
dtt_completed()