I have following variables f_100_0_0 and f_100_0_1. They are respreenting choosing two of your favotite colors from total 4 colors (1-red, 2-green, 3-blue and 4-white). In R, how can I change them into the dummy variables on the right side, which are 4 dummy variables representing 4 colors.

Thanks!