Hi I have this table (attached) to which I've saved the script from the split function.
Essentially the main table has for each sample 2 measurements for each target, "mean_numeric" and "value", each sample has 2 replicates and the 2 measurements should be the same (and are the same as far as I'm aware).
I want to reformat the table using split so for each sample I have a row and then each target measurement is a column, and since there are 2 replicates there should be 2 identical rows, however for some reason some of the target measurement values are getting shifted:
Rows 17 and 18 should have the same values as they are the same sample, and they do on the first column but then it switches to 16 and 17 having the same values. Why is this happening?
Here is how I use the split function:
Many thanks!
Edit: I'm aware I could remove the duplicates from the main table and then split however I'm only showing a snippet of the data, there are other columns that are different across the replicates. And I'd also like to understand what's happening with the split function.