From patrickbolliger at gmx.ch  Mon Nov 10 11:50:06 2008
From: patrickbolliger at gmx.ch (patrickbolliger at gmx.ch)
Date: Mon, 10 Nov 2008 11:50:06 +0100 (CET)
Subject: [Rd] Timeseries - window - extend problem (PR#13272)
Message-ID: <20081110105006.8D7C2282C768@mail.pubhealth.ku.dk>

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
>



[Rd] Timeseries - window - extend problem (PR#13272)
patrickbolliger at gmx.ch