I have a set of paired data. One column is a Date, formated as mdY, the other a corresponding datapoint.
The dates are daily.
I would like to extract the date and data that is recorded on friday (the last day of the working week), to make the data weekly. The next thing I would like to do is reformat the Date to YMD so that it matches another dataset I have.
How can this be achieved in R?
Thanks in advance.