3
In the frame date below I want those on days that have no gain information that the gain is repeated based always on the last collected information. For example from day 2 to day 15 the gain will be 0.97 and from day 79 to 86 of 0.45 How can I do this in R?
<
Dia Ganho
2 0.97
16 0.95
23 1.03
24 0.99
30 1.03
37 1.01
44 1.11
51 1.04
58 1.31
65 1.17
72 1.09
79 0.45
86
I ran your code here and it seemed to me that there are lines with repeated days on
resultado
, but different gains.– Marcus Nunes
@Marcusnunes You’re right. Error corrected.
– Rui Barradas