patrickbolliger at gmx.ch
2008-Nov-10 10:50 UTC
[Rd] Timeseries - window - extend problem (PR#13272)
Full_Name: Patrick Bolliger Version: R 2.8.0 OS: Windows XP Submission from: (NULL) (165.222.185.132) I cannot understand the behaviour of the following snippet... I guess it has to do with the representation of the floating number .66666 ----------------------------------------------------------------------------------- CODE-SNIPPET: ============MTH <- 10 window(ts(1:290,start=c(1984,MTH),freq=12),start=c(2008,9),end=c(2008,9),extend=T) MTH <- 9 window(ts(1:290,start=c(1984,MTH),freq=12),start=c(2008,9),end=c(2008,9),extend=T) ------------------ RESULT: ------------------> MTH <- 10 > window(ts(1:290,start=c(1984,MTH),freq=12),start=c(2008,9),end=c(2008,9),extend=T)Fehler in ts(x, xtsp[1], xtsp[2], xtsp[3]) : 'start' kann nicht nach 'end' sein> MTH <- 9 > window(ts(1:290,start=c(1984,MTH),freq=12),start=c(2008,9),end=c(2008,9),extend=T)Sep 2008 289>