[R] How to create a time series object with time only (no date)

ce zadig_1 at excite.com
Sun Dec 21 14:59:55 CET 2014


Thanks Joshua,

Would you kindly explain if I have an xts array with different dates how I change all dates to 1970-01-01 without touching the time ? I tried with indexFormat without success. indexFormat(s) <- "1970-01-01 %H:%M:%S" . when I plot a graph it still shows original dates. 
ce


-----Original Message-----
From: "Joshua Ulrich" [josh.m.ulrich at gmail.com]
Date: 12/21/2014 12:53 AM
To: "ce" <zadig_1 at excite.com>
CC: "R-Help" <r-help at r-project.org>
Subject: Re: [R] How to create a time series object with time only (no date)

On Dec 20, 2014 11:11 PM, "ce" <zadig_1 at excite.com> wrote:
>
>
> Dear all,
>
> I want to create a time series object from 00:00:00 to 23:59:00 without dates ?
> I cant figure it out with xts ?
>
You cant create an xts object without a date in the index. If the date doesnt matter, you can just set it to 1970-01-01 (or any other day).
> ce
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.



More information about the R-help mailing list