Skip to contents

We define an intervals vector to always start with 0, and contain unique ordered time points.

Usage

assert_intervals(x, y)

Arguments

x

what to check.

y

(count)
required length of y.

Value

Raises an error if x is not an intervals vector starting with 0.

Examples

assert_intervals(c(0, 5, 7), 3)