how can I group two different categories within the same variable?

Welcome, @ana_pais! First of all, it is going to be easier for folks around here to help if you include a sample of your data as well as the code you've used to get to where you are stuck. Without knowing the structure of the data or what you've already tried, it's very hard to help.

See this post for more information about best practices for writing questions and including a reproducible example (reprex).

1 Like