Hi, I have a dataset with variables date, AR and TA2. I want to create AR2 and fix it at the earliest AR date for all subsequent rows (i.e. 2000-01-01). In this case the value should always be 0.020158103. How can I achieve this in the shortest number of steps? I have tried the retain function as well as a sort, delete and merge but this is quite messy. Date AR TA2 AR2 2000-01-01 0.020158103 0.020158103 2000-02-01 0.018692771 0.021258489 0.020158103 2000-03-01 0.021398338 0.022432956 0.020158103 2000-04-01 0.021881263 0.020158103 2000-05-01 0.022085627 0.020158103 2000-06-01 0.02190027 0.020158103 2000-07-01 0.021667115 0.020158103 2000-08-01 0.021301672 0.020158103
... View more