I have a data set as follows:
Age d18O
0 -35.19
50 -35.19
50 -34.83
100 -34.83
100 -35.05
150 -35.05
150 -35.45
200 -35.45
200 -35.42
250 -35.42
250 -35.63
I would like to get the data in the following format
Age d18O1 d18O2
0 -35.19 NA
50 -35.19 -34.83
100 -34.83 -35.05
and so on
I tried to put it in data frame and unstack it but it didn't give me the data frame I want
any suggestions ??
Thank you
I'm not trying to transpose the data, I want to separate the duplicated values in Age into 2 separate columns