as.interval.array: Converts an array to an interval object.

View source: R/convert.R

as.interval.arrayR Documentation

Converts an array to an interval object.

Description

The array must have three dimensions, with the second dimension of size 2, representing the minimum and maximum values.

Usage

## S3 method for class 'array'
as.interval(x)

Arguments

x

An array to be converted to an interval object.

Value

An interval object constructed from the array if it meets the requirements, otherwise attempts to convert it to a matrix first.

Examples

as.interval(array(1:12, dim = c(2, 2, 3)))

COveR documentation built on Oct. 30, 2024, 9:28 a.m.