as.interval.matrix.Rd
The number of columns in the matrix must be even, representing pairs of minimum and maximum values.
# S3 method for class 'matrix'
as.interval(x)
An interval object constructed from the matrix.
as.interval(matrix(1:12, 3, 4))
#> , , 1
#>
#> min max
#> [1,] 1 4
#> [2,] 2 5
#> [3,] 3 6
#>
#> , , 2
#>
#> min max
#> [1,] 7 10
#> [2,] 8 11
#> [3,] 9 12
#>
#> Available components:
#> [1] "inter" "class"