Learn R Programming

simIDM (version 0.1.0)

assert_intervals: Assertion for vector describing intervals

Description

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

Usage

assert_intervals(x, y)

Value

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

Arguments

x

what to check.

y

(count)
required length of y.

Examples

Run this code
assert_intervals(c(0, 5, 7), 3)

Run the code above in your browser using DataLab