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

View source: R/00generic.R

continuousR Documentation

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

Description

For Time objects.

Usage

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

Arguments

x

object to test

value

logical indicating whether x must be 'continuify' or not.

...

arguments to or from other methods

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.

Value

Logical indicating if the object is continuous or not.

or

The object set continous.

See Also

TimeIntervalDataFrame, POSIXcti


timetools documentation built on Aug. 29, 2023, 5:09 p.m.