as.interval.array.Rd
The array must have three dimensions, with the second dimension of size 2, representing the minimum and maximum values.
# S3 method for class 'array'
as.interval(x)
An interval object constructed from the array if it meets the requirements, otherwise attempts to convert it to a matrix first.
as.interval(array(1:12, dim = c(2, 2, 3)))
#> , , 1
#>
#> [,1] [,2]
#> [1,] 1 3
#> [2,] 2 4
#>
#> , , 2
#>
#> [,1] [,2]
#> [1,] 5 7
#> [2,] 6 8
#>
#> , , 3
#>
#> [,1] [,2]
#> [1,] 9 11
#> [2,] 10 12
#>
#> Available components:
#> [1] "inter" "class"