categorical.length
categorical: N = length (C)
Length of a categorical vector.
N = length (C) returns the size of the longest
dimension of the categorical array C, unless any of its dimensions
has zero length, in which case length (C) returns 0.
Source Code: categorical