we got a data frame with 2 columns looking like this: It's a list of months with a value and their quarter assigned.
quarter_number base_quarter
1 63.44767
1 71.12924
1 95.58290
2 56.85544
2 45.89876
2 47.88994
3 65.54654
...
The number for the quarter is repeading 3 times and then gets +1. Aim is it to set for each value of the second and thrid month of a quarter the same value as of the first one. So it will look like this:
quarter_number base_quarter
1 63.44767
1 63.44767
1 63.44767
2 56.85544
2 56.85544
...
Thanks for your hints!