| interval-class | R Documentation |
The S4 class "interval" is a simple class for numeric
intervals.
"maybeInterval" is a class union (see
setClassUnion) of "interval" and "NULL".
Objects can be created by calls of the form new("interval", ...),
but typically they are built via interval().
.Data:numeric vector of length two, specifying the interval ranges.
open:logical vector of length two,
specifying if the interval is open or closed on the left and
right, respectively.
Class "interval" extends "numeric", from
data part, and "maybeInterval", directly.
signature(x = "numeric", table = "interval"):
check if x is inside the interval, carefully differentiating
open and closed intervals.
signature(x = "interval"): ...
signature(object = "interval"): ...
signature(x = "interval"): Group methods,
notably range(), min(), etc.
There are more sophisticated interval classes, functions and methods, notably in package intervals. We only use this as a simple interface in order to specify our copula functions consistently.
interval constructs "interval" objects conveniently.
-1:2 %in% interval("(0, Inf)")
## 0 is *not* inside
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.