powered by
empirical_dist
Method for obtaining the dimension of a empirical_dist object.
# S3 method for empirical_dist dim(x)
Integer; the number of dimensions.
The object to obtain the dimension of.
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