dim.empirical_dist: Method for obtaining the dimension of a 'empirical_dist'...

View source: R/empirical_dist.R

dim.empirical_distR Documentation

Method for obtaining the dimension of a empirical_dist object.

Description

Method for obtaining the dimension of a empirical_dist object.

Usage

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

Arguments

x

The object to obtain the dimension of.

Value

Integer; the number of dimensions.

Examples

ed1 <- empirical_dist(c(1, 2, 3))
dim(ed1) # 1

ed2 <- empirical_dist(matrix(1:6, ncol = 2))
dim(ed2) # 2

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