I have a two-column dataframe in R: the first column is a broad category, and the second column contains comma-separated items within the broad category. This is what it looks like:
Orthogroup | Sequences |
---|---|
0 | Seq1, Seq2, Seq3 |
1 | Seq4 |
And this is what I would like it to look like:
Orthogroup | Sequence |
---|---|
0 | Seq1 |
0 | Seq2 |
0 | Seq3 |
1 | Seq4 |
To be honest I'm not even really sure where to start... any help is much appreciated!