My data looks like
a
a >> b
d >> c >> e
(unknown times ">>") can be present in a row
And I need them in several columns depending on occurrences of ">>"
I tried strsplit, which converts the column in a list and when I tried to unlist it, it repeats the values like
X1 X2 X3
a a a
a b a
d c e
Is there any Base R solution to get
X1 X2 X3
a
a b
d c e
And so on? I can only use Base R!!
dputso we can see the structure we're working with.dput(your_sample).