powered by
The array must have three dimensions, with the second dimension of size 2, representing the minimum and maximum values.
# S3 method for 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.
An array to be converted to an interval object.
as.interval(array(1:12, dim = c(2, 2, 3)))
Run the code above in your browser using DataLab