I have a data frame with several Participant_ID. For each Participant_ID, I have 4 variables (Start_day,End_day,Lights_out and Got_up) and 48 days for each variables (named here:...2 - ...3 - ...) :
I'd like to have 6 columns: id- days - Start_day - End_day - Lights_out - Got_up
Basically, keep the "id" column and switch variables with days (...2, ...3,...4,...)
Does anyone know how to do that? Many thanks!