[R] Read date for timeserie object

Heywood, Giles Giles.Heywood at CommerzbankIB.com
Thu Aug 21 18:53:24 CEST 2003


You might wish to have a look at the package 'its' for handling irregular 
time-series.  If your data is in a .csv file, the following would enable
you to handle the data in its irregular form.

its.format("%m/%d/%Y")
readcsvIts(filename)

- Giles

> -----Original Message-----
> From: Jan Verbesselt [mailto:Jan.Verbesselt at agr.kuleuven.ac.be]
> Sent: 21 August 2003 15:07
> To: r-help at stat.math.ethz.ch
> Subject: [R] Read date for timeserie object
> Importance: High
> 
> 
> Dear all,
> 
> Is there a simple trick to read in data with the following format and
> create a Time Serie object of it?
> 
> Date	CountOfField2
> 5/10/1998	7
> 5/11/1998	5
> 5/12/1998	2
> 5/14/1998	1
> 5/15/1998	1
> 5/19/1998	1
> 5/20/1998	1
> 5/21/1998	1
> 5/24/1998	2
> 5/25/1998	1
> 5/26/1998	2
> ....
> 2002
> ...
> 
> R should recognize that some dates are not available...(NA). You can
> define start and end date Ok, and frequency= 365 is ok...but is it
> possible that recognizes the gaps?
> 
> Thanks a lot,
> Jan
> 
> 
> ______________________________________________________________
> __________
> __
> Jan Verbesselt 
> Research Associate 
> Lab of Geomatics and Forest Engineering K.U. Leuven
> Vital Decosterstraat 102. B-3000 Leuven Belgium 
> Tel:+32-16-329750 
> Fax: +32-16-329760
> http://perswww.kuleuven.ac.be/~u0027178/VCard/mycard.php?name=janv
> http://gloveg.kuleuven.ac.be/
> ______________________________________________________________
> __________
> __
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> 


********************************************************************** 
This is a commercial communication from Commerzbank AG.\ \ T...{{dropped}}




More information about the R-help mailing list