If I have a data table in R like this:
Table0:
some subtitle 1
info1a | info2a / info3a / info4a
info1b | info2b / info3b / info4b
some subtitle 2
info1c | info2c / info3c / info4c
info1d | info2d / info3d / info4d
...
Is there a way to delete all the subtitle rows and then split the info columns normally (by | and /)? The subtitles can ideally go in a separate table.
Thus, the result would be:
Table1, where the pipes represent the breaks between the columns:
info1a | info2a | info3a | info4a
info1b | info2b | info3b | info4b
info1c | info2c | info3c | info4c
info1d | info2d | info3d | info4d
...
Table2:
some subtitle 1
some subtitle 2
...