This function converts pairwise comparison results into the two-column format used by the EloChoice package: one column for the winner and one for the loser of each trial.
Value
A tibble with two columns:
winner: ID of the winning sampleloser: ID of the losing sample
Rows with invalid or missing better_id are dropped.
Details
It accepts either:
legacy columns
ID1,ID2,better_id, orcanonical columns
A_id,B_id,better_id.
Rows where better_id does not match either side of the pair
(including NA) are excluded.