[R] ts format for daily time serie

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Nov 20 19:38:11 CET 2003


It's probably best to handle this an an x-y plot (?plot.POSIXct) or as an
irregular time series (see package its on CRAN).

The ts function is designed for time series that you want to do 
time-series analysis on.

On Thu, 20 Nov 2003, 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 ?
> 
> 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


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list