I'm trying to tidy up my data and currently have the following tibble:
TidyTibble
Sample OD
1: R30 1.9235
2: R10 1.0432
3: R3.3 0.4582
4: R1.1 0.2260
5: Blk 0.0981
6: 0.1 0.3712
7: 0.8 0.7429
8: TCP 0.9467
9: R30 2.0113
10: R10 1.0068
11: R3.3 0.4760
12: R1.1 0.2312
13: Blk 0.0990
14: 0.1 0.3674
15: 0.8 0.7718
16: TCP 0.9099
>
I need the data in the format below. Duplicate OD measurements should be in new columns labeled OD 1 and OD2:
Sample OD1 OD2
R30 1.9235 2.0113
...
I've tried melt, reshape, pivot_wide and all sorts of other approaches. I'm sure the right solution is incredibly simple but I just can't find it. Thank you in advance!