Learn R Programming

algebraic.dist (version 0.9.1)

dim.interval: Return the dimension of the interval.

Description

Return the dimension of the interval.

Usage

# S3 method for interval
dim(x)

Value

Integer; the number of interval components.

Arguments

x

An interval object.

Examples

Run this code
iv <- interval$new(lower = 0, upper = 1)
dim(iv) # 1

Run the code above in your browser using DataLab