is_interval | R Documentation |
This routine returns False if high < low.
is_interval(low, high, allow_degenerate = TRUE)
low |
the lowest end of the interval |
high |
the highest end of the interval |
allow_degenerate |
If TRUE, the case low == high is allowed. Defaults to TRUE |
## Not run:
# For assertion
assertthat::assert_that(qscheck::is_interval(low, high))
# For check
if (qscheck::is_interval(low, high)) {}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.