as.IntervalData | R Documentation |
This function allows to coerce a real number stored as a single
numeric
object to a degenerate interval formed only by this real
number saved as an IntervalData
instance.
## S4 method for signature 'numeric' as.IntervalData(object)
object |
A single real number stored as a single |
Single real numbers could be seen as particular cases of interval-valued data where each interval's lower and upper bounds are equal or, alternatively, its spread is zero.
This function returns a degenerate interval saved as an object
of class IntervalData
.
José García-García garciagarjose@uniovi.es
Other coercion function is as.IntervalList()
.
## Transform a single real-valued number into an interval ## In particular, degenerate interval {1} is defined. i <- as.IntervalData(1); i
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.