Is x a difftime object?
Is x a difftime object?
is.difftime(x)
x |
an R object |
TRUE if x is a difftime object, FALSE otherwise.
is.difftime(as.Date("2009-08-03")) # FALSE is.difftime(make_difftime(days = 12.4)) # TRUE
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.