Test whether elements of a mixtime vector are linear, cyclical, or durations.
Usage
time_is_linear(x, ...)
time_is_cyclical(x, ...)
time_is_duration(x, ...)
is_time_linear(x, ...)
is_time_cyclical(x, ...)
is_time_duration(x, ...)Details
These helpers return a logical vector the same length as x identifying the
type of time represented by each element.
Examples
t <- c(yearmonth(0), month_of_year(0), months(0L))
time_is_linear(t)
#> [1] TRUE FALSE FALSE
time_is_cyclical(t)
#> [1] FALSE TRUE FALSE
time_is_duration(t)
#> [1] FALSE FALSE TRUE