Learn R Programming

COveR (version 1.0.4)

as.interval.matrix: 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 matrix
as.interval(x)

Value

An interval object constructed from the matrix.

Arguments

x

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

Examples

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

Run the code above in your browser using DataLab