From bolker at ufl.edu  Fri Oct 16 16:12:40 2009
From: bolker at ufl.edu (Ben Bolker)
Date: Fri, 16 Oct 2009 07:12:40 -0700 (PDT)
Subject: [Rd] forwarded: bug (?) in cut.POSIXt with "breaks"=integer
In-Reply-To: <4AD75795.9070308@ufl.edu>
References: <4AD75795.9070308@ufl.edu>
Message-ID: <25926126.post@talk.nabble.com>


PS a parallel problem seems to occur in cut.Date  ... cut.POSIXt and cut.Date
both allow
breaks to be a single integer specifying the number of breaks, and both call

 if(is.null(labels)) levels(res) <- as.character(breaks[-length(breaks)])
  
near the end of the function, which breaks (so to speak) if
length(breaks)!=length(levels(res))-1

I could keep working on a patch if requested, but probably won't otherwise.

  Ben Bolker






-- 
View this message in context: http://www.nabble.com/forwarded%3A-bug-%28-%29-in-cut.POSIXt-with-%22breaks%22%3Dinteger-tp25914604p25926126.html
Sent from the R devel mailing list archive at Nabble.com.



[Rd] forwarded: bug (?) in cut.POSIXt with "breaks"=integer
Ben Bolker