[R] readcsvIts() to create irregular time series
    Jan Verbesselt 
    Jan.Verbesselt at agr.kuleuven.ac.be
       
    Mon Sep  1 18:59:23 CEST 2003
    
    
  
Thanks for the quick help,
It works now!
> Fire   <-
its(readcsvIts('Fires98_2002.csv',informat=its.format("%m/%d/%Y"),header
=TRUE))
> is.its(Fire)
[1] TRUE
BUT;
1. What can you do with informat and outformat? Is it the same as
its.format() before the its function?
2. Can the its be plotted onto a ts? And is a correlation analysis in
between the two objects possible?
 > Timeserie
Time Series:
Start = c(1998, 10) 
End = c(2001, 36) 
Frequency = 36 
              V2
  [1,] 0.8021540
  [2,] 0.7862612
plot(Timeserie, ylim=c(0.4, 7))
lines(Fire, col=2, type="S")
?
Thanks again for your help,
Jan
-----Original Message-----
From: Heywood, Giles [mailto:Giles.Heywood at CommerzbankIB.com] 
Sent: Monday, September 01, 2003 4:44 PM
To: 'r-help at stat.math.ethz.ch'
Cc: 'Jan Verbesselt'
Subject: RE: [R] readcsvIts() to create irregular time series
Jan
The function readcsvIts reads a csv file into a matrix.  To convert 
the matrix into an 'its', apply the its function to the matrix.
So for your example
its.format("%m/%d/%Y")
test- <- its(readcsvIts(filename))
is.its(test)
"TRUE"
    
    
More information about the R-help
mailing list