I have a df like
ind1.id ind2.id group wang
02_1 02_1 1205 -0.2999
02_1 02_11 1205 -0.1688
02_1 02_12 1205 -0.0873
02_1 02_13 1205 -0.0443
02_1 02_14 1205 -0.1415
and I would like to split the group column so that it is like this
ind1.id ind2.id group1 group2 wang
02_1 02_1 12 05 -0.2999
02_1 02_11 12 05 -0.1688
02_1 02_12 12 05 -0.0873
02_1 02_13 12 05 -0.0443
02_1 02_14 12 05 -0.1415
I've messed around with strsplit and stuff but haven't managed to get every far.
Thanks.