Hi all,
I was stuck on this one problem which I hope I could get some help! I have a separate list of codes and a list of combinations of codes (see examples below:)
| List of Combinations |
| a |
| b |
| c | d |
| b | d |
| a | e |
| e |
| b | e |
| d | e |
| d |
Firstly, I would like to make the join them together and make the Codes my headers, and for every code that appears in the combination, the result would be "1", else "0". See expected results below
| List of Combinations | a | b | c | d | e |
| a | 1 | 0 | 0 | 0 | 0 |
| b | 0 | 1 | 0 | 0 | 0 |
| c | d | 0 | 0 | 1 | 1 | 0 |
| b | d | 0 | 1 | 0 | 1 | 0 |
| a | e | 1 | 0 | 0 | 0 | 1 |
| e | 0 | 0 | 0 | 0 | 1 |
| b | e | 0 | 1 | 0 | 0 | 1 |
| d | e | 0 | 0 | 0 | 1 | 1 |
| d | 0 | 0 | 0 | 1 | 0 |
Hope to get some insights on this thank you!