I have collected 42 data points from participants (6 per day for 7 days), all of them at different times. Now I would like to compute a timepoints variable. The data is in long format, so each participant has multiple rows (42 to be exact, for each measurement time point). Now I also need a column with a time point variable, where the first row of a participant has the value 1 and the last 42.
How do I do that? Help is greatly appreciated.
How do I do that? Help is greatly appreciated.