is_duration {clock} | R Documentation |
x
a duration?This function determines if the input is a duration object.
is_duration(x)
x |
An object. |
TRUE
if x
inherits from "clock_duration"
, otherwise FALSE
.
is_duration(1)
is_duration(duration_days(1))