Determines if an object is a strictly valid interval object.

is.interval(x)

Arguments

x

An R object to be tested.

Value

A logical value indicating whether the object is a valid interval.

Examples

is.interval(inter_city)
#> [1] TRUE
is.interval(1:4)
#> [1] FALSE