x
a duration?This function determines if the input is a duration object.
is_duration(x)
TRUE
if x
inherits from "clock_duration"
, otherwise FALSE
.
[object]
An object.
is_duration(1)
is_duration(duration_days(1))
Run the code above in your browser using DataLab