I am trying to the break a row of data. Unfortunately, all my runs are saved as one long row.
The first value, is the ID number. The last is the gender. (the middle two is not needed)
[[131 22 2 "male"] [123 23 2 "female"] [232 21 2 "male"] [132 21 2 "male"]]
I would like to learn how to break the row, so each value in a bracket is separated into its own cell, and not just as one long row of data in brackets.
My strategy is to get R to recognize breaking at "]" or the space between "] ["
It seems like a very simple problem, but my stringsplit, substitute, and other arguments aren't working.
Please help? I'm just a little tilted/frustrated!
Thanks so much