Hi all, I am still pretty new to R and am looking for some help with combining values within a variable. I am using the ELS 2002 dataset that is publicly available on the NCES website. The variable I would like to adjust is the BYRACE variable that has values as follows:

1 = Amer. Indian/Alaska Native;
2 = Asian/Pac. Islander;
3 = Black or African American;
4 = Hispanic, Race Specified;
5 = Hispanic, Race Not Specified;
6 = More than one Race;
7 = White

I would like to combine the two values for Hispanics (4 and 5) to be a single value. I am unsure about how to do this. Any help would be greatly appreciated!!

It would be helpful if you could post a sample of the data you're working with. Personally, I'm not familiar with ELS 2002 or NCES. If you can show small examples of your data it would be easier to help.