Learn R Programming

timetools (version 1.5.2)

regular: Test if a time object is regular

Description

Test for regularity of a time object.

Usage

regular(x, ...)

## S3 method for class 'TimeInstantDataFrame': regular(x, ...)

## S3 method for class 'TimeIntervalDataFrame': regular(x, ...)

Arguments

x
object to test, from which get or set a property
...
arguments to or from other methods

Value

  • boolean indicating if x is regular or not

Details

Test if the object is regular. A TimeInstantDataFrame is regular if all instants are equally spaced. A TimeIntervalDataFrame is regular if it is homogeneous and all interval's starts are equally spaced.

See Also

TimeIntervalDataFrame, TimeInstantDataFrame