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

View source: R/convert.R

as.matrix.intervalR Documentation

Converts an interval object to a matrix representation.

Description

Each interval is expanded into its minimum and maximum bounds.

Usage

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

Arguments

x

An interval object to be converted.

...

Additional arguments to be passed to as.vector().

Value

A matrix representation of the interval, with two columns for each interval's minimum and maximum values.

Examples

as.matrix(inter_city)

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