On Tue, Oct 26, 2010 at 12:56 PM, Manta <mantin...@libero.it> wrote:
>
> Thanks for your help Gabor. That would be exactly what I am looking for. If I
> use your code I get the nice representation I am looking for. However, when
> I try to apply the code in the same fashion to my case, it does not produce
> the x-axis. I believe the problem hinges on the following warning message I
> got when creating the 'zoo' object: Warning message: In zoo(trans_numb,
> xtime): some methods for “zoo” objects do not work if the index entries in
> ‘order.by’ are not unique
>
> Actually, I do not understand why I get this warning, as my series is
> irregularly spaced, but does not have any duplicate (i.e. one observation
> per business day).

Maybe your series is not what you think it is.  Try any of these:

  z[duplicated(time(z))]

  table(time(z))

  aggregate(z, identity, length)

to find the duplicates.

-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com

______________________________________________
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