Learn R Programming

COveR (version 1.0.4)

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

Description

Each interval is expanded into its minimum and maximum bounds.

Usage

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

Value

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

Arguments

x

An interval object to be converted.

...

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

Examples

Run this code
as.matrix(inter_city)

Run the code above in your browser using DataLab