Re: [R] Gaps on merging xts objects

2012-06-11 Thread Joshua Ulrich
Eric, I'd be happy to help. Please follow the posting guide (specifically the "Surprising behavior and bugs" section) and provide a *minimal*, reproducible example and the output from sessionInfo(). http://www.r-project.org/posting-guide.html Best, -- Joshua Ulrich  |  FOSS Trading: www.fosstrad

Re: [R] Gaps on merging xts objects

2012-06-10 Thread eric
An update ... I did a bit more search on the internet and got some ideas i set the start month for the series to the same date. That didn't help. Then I tried .index(x2)==.index(msci.m) FALSE i was able to fix the problem with : index(x2) <- as.Date(index(x2)) index(msci.m) <- as.Date(index(ms

[R] Gaps on merging xts objects

2012-06-10 Thread eric
Looking for a little help figuring out what's driving gaps in data after merging two xts objects (msci.m and x2). The merge statement I'm using is ... y <-merge(x2,msci.m, all=FALSE). Here's info on the output , y: head(y) t-bill msci Sep 1985 7.310 316.963 Mar 1986 6.560 463.47