is.interval
From lubridate v1.2.0
by Garrett Grolemund
Is x an Interval object?
Is x an Interval object?
Usage
is.interval(x)
Arguments
- x
- an R object
Value
- TRUE if x is an Interval object, FALSE otherwise.
See Also
is.instant
, is.timespan
,
is.period
, is.duration
,
Interval-class
Examples
is.interval(new_period(months= 1, days = 15)) # FALSE
is.interval(new_interval(ymd(20090801), ymd(20090809))) # TRUE
Community examples
Looks like there are no examples yet.