[R] ts & daily timeseries

Jin Shusong jinss at hkusua.hku.hk
Wed Jun 23 03:46:29 CEST 2004


On Tue, Jun 22, 2004 at 06:22:40PM +0200, v.demartino2 at virgilio.it wrote:
> I have defined a daily timeseries for the 365 days of 2003 issuing:
> 
> myts = ts(dati[,2:10],frequency=365,)
> > myts
> Time Series:
> Start = c(1, 1) 
> End = c(1, 365) 
> Frequency = 365 
>   
> and 
> 
> mytime =  as.POSIXct(strptime(as.character(dati[,1]),format="%Y-%m-%d"))
> 
> contains the dates from "2003-01-01" to "2003-12-31"
> 
> How can I combine mytime and myts in order to list the timeseries according
> to the more natural
> 
> 2003-01-01    xxxxx  xxxxx   xxxxx ......
> 2003-01-02    xxxxx  xxxxx   xxxxx ......
> ...........
> 2003-12-31    xxxxx  xxxxx   xxxxx ......
> 
> I've googled on this subject to no avail.
> 
> Thanks
> Vittorio
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Dear Vittorio,

  I think that the its package can help you.
  Good luck.

      Jin




More information about the R-help mailing list