[R] merging data sets to match data to date

Erik Iverson
Wed, 13 Aug 2008 13:08:31 -0000

rcoder wrote:
> Hi everyone,
>
> I want to extract data from a data set according to dates specified in a
> vector. I have created a blank matrix with row names (dates) that I want to
> extract from the full data set. I have then performed a merge to try to o/p
> rows corresponding to common dates to a results matrix, but the operation
> did not fill the results matrix. Coulc anyone offer any advice to assist
> with this operation?

Yes, follow the posting guide and provide commented, minimal,
self-contained, reproducible code of your problem.