Hello,
I'm struggling with the pivot wider() function.
My data are the following :
Using the column "treatment" as the main parameter, I want to pivot wider data like this :
By renaming all the colums : adding the treatment as a prefix.
I've tried several expressions using pivot_wider, but I don't understand how to rename/mutate columns using the "treatment" column as a prefix.
could you help me ?
thanks in advance for your help.
Mickaël