[R] ts format for daily time serie

Achim Zeileis zeileis at ci.tuwien.ac.at
Thu Nov 20 19:15:33 CET 2003


On Thursday 20 November 2003 19:06, Kenneth Cabrera wrote:

> Hi R-users:
>
> How can I format a daily time serie with ts function
> so the plot of the time shows the date right
> (dd/mm/yy) or yy.xxxx ?

ts() only allows regulary spaced time series. Try the package its or 
the irts() function in package tseries for irregularly spaced time 
series.

hth,
Z

> Excerp of the database:
>
>            FECHA     TRM
> 1    01/01/2000 1873.77
> 2    02/01/2000 1873.77
> 3    03/01/2000 1873.77
> 4    04/01/2000 1874.35
> 5    05/01/2000 1895.97
> .
> .
> .
> 1397 10/11/2003 2843.82
> 1398 11/11/2003 2840.41
> 1399 12/11/2003 2840.41
> 1400 13/11/2003 2845.69
> 1401 14/11/2003 2850.24
> 1402 18/11/2003 2842.53
> 1403 19/11/2003 2831.97
> 1404 20/11/2003 2826.60
>
>
> Thank you for your help.




More information about the R-help mailing list