I'm using a multi-answer ethnicity question from a Qualtrics survey in my dataset and am looking to collapse multiple columns into one.
My data looks like this:
| White/Caucasian | Black/African American | Hispanic | Pacific Islander/Native Hawaiian | American Indian/Alaskan Native |
|---|---|---|---|---|
| 1 | - | 1 | - | - |
| 1 | - | - | - | - |
| - | - | - | - | 1 |
| - | - | - | 1 | - |
I'm trying to get it to look like this:
| Race |
|---|
| Multiple |
| White |
| American Indian/Alaskan Native |
| Pacific Islander/Native Hawaiian |
Is there a way to do this in R? I have been working on this for hours!