categorize function

Categorize data based on contents of a column