A generic function to convert various R objects into interval objects.

as.interval(x)

Arguments

x

An R object to be converted to an interval.

Value

An interval object constructed from the R object or NULL if the type is not supported.