Learn R Programming

timetools (version 1.5.2)

continuous: Test if a time object is continuous/set an time object continuous.

Description

For Time objects.

Usage

continuous(x, ...)
  continuous(x) <- value

## S3 method for class 'TimeIntervalDataFrame': continuous(x, ...) ## S3 method for class 'TimeIntervalDataFrame': continuous(x) <- value

Arguments

x
object to test
value
logical indicating whether x must be 'continuify' or not.
...
arguments to or from other methods

Value

  • Logical indicating if the object is continuous or not.

    or

    The object set continous.

Details

For objects based on time intervals. After ordering intervals, test if the end of an interval is the start of the next interval. If any interval overlap another one, it returns FALSE.

If not any interval overlap another, and the object is not continuous, the object can be set 'continuous' with

continuous(obj) <- TRUE

Intervals will be added such as the object can pass the test describe below. The data is filled with NA values.

See Also

TimeIntervalDataFrame, POSIXcti