# NOT RUN {
x <- sample(1L:10L,size = 4,replace = TRUE)
obj <- CatDP()
## an object of class "ssCatDP", which contains the counts of each unique integer
sufficientStatistics(obj=obj,x=x)
## will return x itself
sufficientStatistics(obj=obj,x=x,foreach = TRUE)
# }
Run the code above in your browser using DataLab