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 Thank you for your help. --
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.
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
Maybe Matching Threads
- Is it possible that "virsh destroy" does not stop a domain ?
- win32 console cli emulation
- Re: Is it possible that "virsh destroy" does not stop a domain ?
- dovecot + antispam plugin - no retraining
- The specified domain either doesn't exist or couldn't be contacte d.