Let's say I have downloaded some stock market data. Now, I am making it as a date list with continuous dates:
Now I need to assign a value of previous Friday to Sat and Sun. Whenever the stock market was off (like holidays or something), I need to assign the previous value. How do I go about it in R ?
Thanks!