I have a quick question that relates to reshaping my data frame where I have ID "grouped_by" data. I have the following schema of the df (+ 2 exemplary instances that I wish to widen (in total I have >5000)):
id solver scoreA scoreB group size
<chr> <chr> <dbl> <dbl> <chr> <dbl>
1 instance_1 s1 1 0.5 g1 1000
2 instance_1 s2 100 50 g1 1000
... what I want to gain is:
id solver.best scoreA.s1 scoreA.s2 scoreB.s1 scoreB.s2 group size
<chr> <chr> <dbl> <dbl> <dbl> <dbl> <chr> <dbl>
1 instance_1 s1 1 100 0.5 50 g1 1000
Appreciate your help. BR