assert_intervals {simIDM} | R Documentation |
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)
Arguments
x |
what to check. |
y |
( |
Value
Raises an error if x
is not an intervals vector starting with 0.
Examples
assert_intervals(c(0, 5, 7), 3)
[Package simIDM version 0.1.0 Index]