Hello, i need help in creating age groups. My variable name is Age and i have almost 10000 cases. I want to categorize them into these age groups, 0-9, 10-19, 20-29, 30-39, 40-49, 50-59, and 60+

Another question is, i have a variable RStatus and it has 6 categories i.e. pink, red, blue, yellow, black. I want RStatus for 60+ but only black. pink, red, blue, yellow i dont need for 60+. But i do need those for rest of the age categories. In excel i can easily do this by filtering and deleting those. In stata i dont know how to do this.

Array