[R] plot time series / dates (basic)

Peter Dalgaard p.dalgaard at biostat.ku.dk
Tue Nov 2 20:19:07 CET 2004


bogdan romocea <br44114 at yahoo.com> writes:

> 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...

Why not just fix the syntax error? Can't take that long to spot that
there are more ")" than "(" in that line, so presumably what was meant
was

  dat <- date[((j-1)*points+1):(j*points)]

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907




More information about the R-help mailing list