If my data resembles this:
Variable 1 Variable 2 Variable 3
1 Red|Blue 0|1 1|0
2 Blue|Red 1|0 0|1
3 Green|Red 0|1 1|0
4 Yellow|Blue 1|0 0|1
What might I use to separate based on the "|"? Something like this:
Variable 1 Variable 2 Variable 3
1 Red 0 1
2 Blue 1 0
3 Blue 1 0
4 Red 0 1
5 Green 0 1
6 Red 1 0
7 Yellow 1 0
8 Blue 0 1
tidyr::separate_rows(). E.g.,separate_rows(df, everything(), sep = "\\|")