Creating a new variable based on a range of scores in the dataset

I second clausp request for a REPRoducible EXample (reprex) illustrating your issue.