setcats
Replace the category set of a categorical array.
Syntax
Section titled “Syntax”B = setcats(A, newcats)Description
Section titled “Description”Returns A with its category set entirely replaced by newcats. Data values that don’t appear in newcats become <undefined>.
Example
Section titled “Example”setcats(categorical({'a','b','c'}), {'a','b'})See also
Section titled “See also”addcats— Add categories to a categorical array.removecats— Remove categories from a categorical array.isundefined— Test which categorical entries are undefined.