I have daily closing price in a xts object. What I am trying to do is get the last closing price of the week. Most of the time this will be Friday but sometimes this might be Thursday or even more rare Wednesday.
I been trying to subset this with the solution found here but with no luck. Has anyone seen or found a solution for something around this.
Thanks in advance.