Skip to content

summary

Summary of a categorical array.

summary(A)
summary(A, dim)

Prints a tabular summary of A — for each category, the number of data values that reference it. The optional dim parameter controls the dimension along which to summarize for multi-dimensional categorical arrays.

summary(categorical({'a','b','a','c','a','b'}))
  • countcats — Count occurrences of each category.
  • categories — List of category names in a categorical array.