I have a data frame with 8 columns and 177 rows. I need to loop this data frame over each day of the week so that each unique ID is repeated 7 times corresponding to the day of the week: Monday, Tuesday, etc.
I have tried searching for an answer to this, but have been unable to find one.
[The image provides the first six rows of my current output. Columns v1, v2, and v3 all have unique values (v1 and v2 change in later rows) ][1]
I need it so that each row repeats seven times and corresponds to the day of the week.