Learn R Programming

algebraic.dist (version 0.9.1)

dim.empirical_dist: 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 empirical_dist
dim(x)

Value

Integer; the number of dimensions.

Arguments

x

The object to obtain the dimension of.

Examples

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

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

Run the code above in your browser using DataLab