subset-trait_categories function

Subset a trait_categories object