Re: [R] Construct time series objects from raw data stored in csv files

2007-04-16 Thread Jeffrey J. Hallman
As Gabor said, ts series are not good for weekly data. That's why I created the tis (Time Indexed Series) class, in the 'fame' package. You don't need the Fame database to use them. -- Jeff __ R-help@stat.math.ethz.ch mailing list

Re: [R] Construct time series objects from raw data stored in csv files

2007-04-13 Thread tom soyer
Thanks Gabor!! On 4/12/07, Gabor Grothendieck [EMAIL PROTECTED] wrote: On 4/12/07, tom soyer [EMAIL PROTECTED] wrote: What should I do for weekly and daily data series? Are there functions similar to yearmon() for other time intervals? I see that there is a built-in yearqtr() function for

[R] Construct time series objects from raw data stored in csv files

2007-04-12 Thread tom soyer
Hi, I have time series data stored in csv files (see below for an example of the data). I understand that in order to analyze my data in R, I need to first transform it into a ts object. Howeve, I could not find an example on how exactly to do that. Is ts the only function I need? What are the

Re: [R] Construct time series objects from raw data stored in csv files

2007-04-12 Thread Achim Zeileis
On Thu, 12 Apr 2007, tom soyer wrote: Hi, I have time series data stored in csv files (see below for an example of the data). I understand that in order to analyze my data in R, I need to first transform it into a ts object. Howeve, I could not find an example on how exactly to do that. Is

Re: [R] Construct time series objects from raw data stored in csv files

2007-04-12 Thread Gabor Grothendieck
On 4/12/07, tom soyer [EMAIL PROTECTED] wrote: Hi, I have time series data stored in csv files (see below for an example of the data). I understand that in order to analyze my data in R, I need to first transform it into a ts object. Howeve, I could not find an example on how exactly to do

Re: [R] Construct time series objects from raw data stored in csv files

2007-04-12 Thread tom soyer
Thanks Gabor! I think your example works, but check this out: as.ts(z) Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec 1921 19.0 18.4 18.3 18.1 17.7 17.6 17.7 17.7 17.5 17.5 17.4 17.3 1922 16.9 16.9 16.7 16.7 16.7 16.7 16.8 16.6 16.6 16.7 16.8 16.9 is.ts(z) [1] FALSE How

Re: [R] Construct time series objects from raw data stored in csv files

2007-04-12 Thread Gabor Grothendieck
On 4/12/07, tom soyer [EMAIL PROTECTED] wrote: Thanks Gabor! I think your example works, but check this out: as.ts(z) Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec 1921 19.0 18.4 18.3 18.1 17.7 17.6 17.7 17.7 17.5 17.5 17.4 17.3 1922 16.9 16.9 16.7 16.7 16.7 16.7 16.8

Re: [R] Construct time series objects from raw data stored in csv files

2007-04-12 Thread tom soyer
Oh yes, I forgot. Thanks!! On 4/12/07, Gabor Grothendieck [EMAIL PROTECTED] wrote: On 4/12/07, tom soyer [EMAIL PROTECTED] wrote: Thanks Gabor! I think your example works, but check this out: as.ts(z) Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec 1921 19.0 18.4

Re: [R] Construct time series objects from raw data stored in csv files

2007-04-12 Thread tom soyer
Gabor, What should I do for weekly and daily data series? Are there functions similar to yearmon() for other time intervals? I see that there is a built-in yearqtr() function for quarterly data, but that's it. Thanks! On 4/12/07, Gabor Grothendieck [EMAIL PROTECTED] wrote: On 4/12/07, tom

Re: [R] Construct time series objects from raw data stored in csv files

2007-04-12 Thread Gabor Grothendieck
On 4/12/07, tom soyer [EMAIL PROTECTED] wrote: What should I do for weekly and daily data series? Are there functions similar to yearmon() for other time intervals? I see that there is a built-in yearqtr() function for quarterly data, but that's it. ts series cannot directly represent daily