Rename categories in categorical array
Renaming categories does not change their position
in categories(B)
. Use reordercats
to
change the category ordering. For example, you can use B
= reordercats(B,sort(categories(B)))
to put the categories
in alphabetical order.
addcats
| categories
| iscategory
| mergecats
| removecats
| reordercats
| setcats