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: x['2010-01-01'] however the .indexDate() command does not work as expected; in particular the following does not return anything. x[.indexDate(x) == '2010-01-01'] I am sure i am missing something - what is .indexDate() supposed to do? thanks and best regards matt johnson [[alternative HTML version deleted]] ______________________________________________ R-help@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.