as.interval.matrix: Converts a matrix to an interval object.

View source: R/convert.R

as.interval.matrixR Documentation

Converts a matrix to an interval object.

Description

The number of columns in the matrix must be even, representing pairs of minimum and maximum values.

Usage

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

Arguments

x

A matrix where each pair of columns represents the minimum and maximum bounds of intervals.

Value

An interval object constructed from the matrix.

Examples

as.interval(matrix(1:12, 3, 4))

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