From btyner at stat.purdue.edu  Sat Dec 16 00:34:57 2006
From: btyner at stat.purdue.edu (Benjamin Tyner)
Date: Fri, 15 Dec 2006 18:34:57 -0500
Subject: [Rd] possible bug in co.intervals when overlap=0
Message-ID: <45833121.4080701@stat.purdue.edu>

I apologize if this is just a misunderstanding on my part, but I was 
under the impression that the intervals returned by co.intervals should 
cover all the observations. Yet

x<-1:10
z<-co.intervals(x,overlap=0)

In R, z equals
      [,1] [,2]
[1,]  0.5  1.5
[2,]  2.5  3.5
[3,]  3.5  4.5
[4,]  5.5  6.5
[5,]  7.5  8.5
[6,]  8.5  9.5

Note in particular the second and last element of x are not covered by 
any of the intervals. In fact S-PLUS gives
     [,1] [,2]
[1,]    1    2
[2,]    3    3
[3,]    4    5
[4,]    6    7
[5,]    8    8
[6,]    9   10


Ben



[Rd] possible bug in co.intervals when overlap=0
Benjamin Tyner