Re: [R] what does .indexDate() do - R::xts

2012-06-12 Thread Matthew Johnson
thanks. i think i understand: the difference is that the first command converts my 'searched-for' date to a number and matches it, but the second does not? On 13 June 2012 12:58, Joshua Ulrich wrote: > On Tue, Jun 12, 2012 at 9:48 PM, Matthew Johnson > wrote: > > Dear R experts, > > > > I am le

Re: [R] what does .indexDate() do - R::xts

2012-06-12 Thread Joshua Ulrich
On Tue, Jun 12, 2012 at 9:48 PM, Matthew Johnson wrote: > Dear R experts, > > I am learning the very useful XTS package, but cannot figure out the > purpose of some commands. > > in particular, the .indexDate() command does not work as expected. > > say: > > x <- timeBasedSeq('2010-01-01/2010-01-0

[R] what does .indexDate() do - R::xts

2012-06-12 Thread Matthew Johnson
Dear R experts, I am learning the very useful XTS package, but cannot figure out the purpose of some commands. in particular, the .indexDate() command does not work as expected. say: x <- timeBasedSeq('2010-01-01/2010-01-02 12:00') x <- xts(1:length(x), x) then i can subset on date as follows: