Skip to content
Back to formatted view

Raw Message

Message-ID: <CAPHn3073iAEPuQdWAX55H+t=vCWGXMe7H-f=6k=RCcmzqOgDJw@mail.gmail.com>
Date: 2013-02-03T13:03:41Z
From: Seimizu Joukan
Subject: Split xts data set into weeks
In-Reply-To: <CAAmySGN8AoTwKdP_QPCHbbbQ9AkLTZaAYW__WaDvkWbmRAJHwQ@mail.gmail.com>

Hi, Michael

Thank you very much!

> Looking at args(split.xts) I think you actually do want split(..., f =
> ) here, not split(..., frequency = ), which would ignore and default
> to months.

yes, split(...,f=) is what I want.

> so I think it's likely a timezone issue. Try setting
> indexTZ(tmp) <- "GMT"

yes, I think you are right.
when I set indexTZ(tmp) to "GMT" or "JST" (Japan),
I got the same result to yours.

when I do Sys.timezone(), I got "" , I am afraid that R failed to get
my ubuntu's system
environment variable. perhaps because I am using ubuntu on vmware,
there are some problems with timezone. not sure! :(

I  know little about timezone, I will go on to investigate and
learn something about it. thank you for your help!

Best regards!

Seimizu Joukan