Method for obtaining the dimension of a empirical_dist object.

# 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
#> [1] 1

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