[R] merging data sets to match data to date

stephen sefick ssefick at gmail.com
Wed Aug 13 15:12:40 CEST 2008


zoo and merge.zoo- read the help files.  Use chron to generate a list
of dates that correspond to the one that you want, and then merge
away.
This should get you started

Stephen Sefick

On Wed, Aug 13, 2008 at 9:08 AM, Erik Iverson <iverson at biostat.wisc.edu> wrote:
> 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.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Let's not spend our time and resources thinking about things that are
so little or so large that all they really do for us is puff us up and
make us feel like gods. We are mammals, and have not exhausted the
annoying little problems of being mammals.

	-K. Mullis



More information about the R-help mailing list