My bad.  I should be clearer about the source of my confusion.

Given two identical string representations of POSIXct objects, can the two
objects represent different times?


> > Where has it gone?
> >
> It's hard to say, especially since you give no indication how you
> assigned the value to Time.  A reproducible example, as requested in
> the posting guide, would be helpful.  Also, what version of R, xts,
> and zoo are you using?
>
>
Browse[2]> Time
[1] "2012-03-20 00:59:57 NZDT"

Browse[2]> index(DATA.ba[[p]]["2012-03-20 00:59:57","bid"])
[1] "2012-03-20 00:59:57 NZDT"

A reproducible example would be huge at this point.  WHat I need is an
answer to that simple question.  If the answer is  "No" then it is worth
doing the work for a reproducible example.  If "Yes" I need to learn why
and better ways of pasing the objects in and out of matrices and vectors.

Using R version  2.12.1

The zoo documentation (?zoo) does not include a version.  Where can I find
it?

Worik


>
> > Looking closer....
> >
> >
> > Browse[2]> index(DATA.ba[[p]]["2012-03-20 00:59:57","bid"])
> > [1] "2012-03-20 00:59:57 NZDT"
> > Browse[2]>
> >
> > Browse[2]> Time
> > [1] "2012-03-20 00:59:57 NZDT"
> > Browse[2]>
> >
> > Browse[2]> index(DATA.ba[[p]]["2012-03-20 00:59:57","bid"]) == Time
> > [1] FALSE
> > Browse[2]>
> >
> > Browse[2]> class(Time)
> > [1] "POSIXct" "POSIXt"
> >
> > Browse[2]> class(index(DATA.ba[[p]]["2012-03-20 00:59:57","bid"]))
> > [1] "POSIXct" "POSIXt"
> >
> > So the variable 'Time' should be good to index DATA.ba[[p]].  I am
> > hopelessly confused.
> >
> The printed representation of the index value and class cannot be used
> to accurately determine equality.
>
> > cheers
> > Worik
> >
>
> --
> Joshua Ulrich  |  FOSS Trading: www.fosstrading.com
>
> R/Finance 2012: Applied Finance with R
> www.RinFinance.com
>

        [[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.

Reply via email to