Is x a length of time?
Is x a length of time?
is.timespan(x)
x |
an R object |
TRUE if x is a period, interval, duration, or difftime object, FALSE otherwise.
is.timespan(as.Date("2009-08-03")) # FALSE is.timespan(duration(second = 1)) # TRUE
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.