as.matrix.interval {COveR} | R Documentation |
Converts an interval object to a matrix representation.
Description
Each interval is expanded into its minimum and maximum bounds.
Usage
## S3 method for class 'interval'
as.matrix(x, ...)
Arguments
x |
An interval object to be converted. |
... |
Additional arguments to be passed to as.vector(). |
Value
A matrix representation of the interval, with two columns for each interval's minimum and maximum values.
Examples
as.matrix(inter_city)
[Package COveR version 1.1.0 Index]