Re: [R] plot time series / dates (basic)

2004-11-02 Thread bogdan romocea
Thank you for the suggestions. I managed to fix everything except the first part. dat - date[(j-1)*points+1):(j*points)] causes a syntax error. If I do dat - vector() I end up with numbers (which is fine by me - just like SAS dates). However, after checking a couple of sources I

Re: [R] plot time series / dates (basic)

2004-11-02 Thread Gabor Grothendieck
Thank you for the suggestions. I managed to fix everything except the : first part. : dat - date[(j-1)*points+1):(j*points)] : causes a syntax error. If I do You have unbalanced parentheses. : dat - vector() : I end up with numbers (which is fine by me - just like SAS dates). :

[R] plot time series / dates (basic)

2004-11-01 Thread bogdan romocea
Dear R users, I'm having a hard time with some very simple things. I have a time series where the dates are in the format 7-Oct-04. I imported the file with read.csv so the date column is a factor. The series is rather long and I want to plot it piece by piece. The function below works fine,

Re: [R] plot time series / dates (basic)

2004-11-01 Thread Prof Brian Ripley
On Mon, 1 Nov 2004, bogdan romocea wrote: Dear R users, I'm having a hard time with some very simple things. I have a time series where the dates are in the format 7-Oct-04. So why use as.POSIXct for a date, rather than as.Date? I imported the file with read.csv so the date column is a