dim.interval: Return the dimension of the interval.

View source: R/interval.R

dim.intervalR Documentation

Return the dimension of the interval.

Description

Return the dimension of the interval.

Usage

## S3 method for class 'interval'
dim(x)

Arguments

x

An interval object.

Value

Integer; the number of interval components.

Examples

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

algebraic.dist documentation built on Feb. 27, 2026, 5:06 p.m.