I have data organised in cloumns with multiple rows which I need to convert to rows with multiple columns for data analysis. For example,
ID Date of entry Location Data1 Data2
1 20101030 1 a b
1 20101030 2 c d
1 20101125 1 w v
1 20101125 2 e d
1 20110314 1 we r
1 20110314 2 f f
2 20091024 1 ewr rte
2 20091024 2 gr ert
3 20061128 1 jy bf
3 20061128 2 u df
3 20110517 1 rd fd
3 20110517 2 sg sd
into this format with each ID row with multiple columns of data (only head row shown below)
ID entry_1 Dateofentry location_1 data1 data2 location_2 data1 data2 entry_2 Dateofentry location_1 data1 data2 location_2 data1 data2 entry_3 Dateofentry location_1 data1 data2 location_2 data1 data2
Can anyone assist?
Thanks! GT