Good Morning,
this is my data set containing data of different client's races.
White Asian Black Native Islander Other
1 0 0 0 0 0
0 1 0 0 0 0
0 0 0 1 0 0
0 0 1 0 0 0
1 0 0 0 1 0
0 0 0 0 0 1
The data is stored with a Boolean where 0 = No and 1 = Yes
So if a client has 1 for the column white, then they are white.
But if a client has a 1 for white and islander then they are multi racial.
So this would be my desired output
White Asian Black Native Islander Other Race
1 0 0 0 0 0 White
0 1 0 0 0 0 Asian
0 0 0 1 0 0 Native
0 0 1 0 0 0 Black
1 0 0 0 1 0 Multi-Racial
0 0 0 0 0 1 Other
I'm familiar with mutate() but I've only used mutate based off one column.
Can anyone provide a code that can help with my desired output?