Skip to content

Timeseries - window - extend problem (PR#13272)

1 message · patrickbolliger at gmx.ch

#
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:
------------------
Fehler in ts(x, xtsp[1], xtsp[2], xtsp[3]) : 
  'start' kann nicht nach 'end' sein
Sep
2008 289