Hi I have a frequency table (dataframe), but I want to collapse the rows of the table into similar values/groups
indigenousstatus counts frequencies
1 10 10.0
2 20 20.0
3 10 10.0
4 50 50.0
5 5 5.0
6 5 5.0
I want to group 1,2,3 and name it Indigenous 4 and name it Non-indigenous 6,7 and name it Not specified
indigenousstatus counts frequencies
Indigenous 40 40.0
Non-Indigenous 50 50.0
Not specified 10 10.0
I'm very new to R please help!