categorical

Methods

Method Reference: categorical.summary

categorical: summary (C)
categorical: summary (C, dim)
categorical: summary (…, Name, Value)
categorical: s = summary (…)

Display summary of categorical array.

summary (C) displays the number of elements in the categorical array C that are equal to each category of C. Any undefined elements in C are summed together and displayed as <undefined>.

Source Code: categorical

Example: 1

summary tabulates the count of each category — including the <undefined> element — giving a quick frequency overview of the array.

 C = categorical ({'M'; 'S'; 'L'; 'M'; ''; 'M'}, {'S', 'M', 'L'})
C =
  6x1 categorical array

    M              
    S              
    L              
    M              
    <undefined>    
    M
 summary (C)
C: 6x1 categorical array

    S              1    
    M              3    
    L              1    
    <undefined>    1