categorical.single
categorical: out = single (C)
Convert categorical array to a single array.
out = single (C) returns a single array indexing the
categories in C. Categorical elements of undefined category are
returned as NaN.
Source Code: categorical