[Rd] bug in cut.POSIXt(..., breaks = < numeric> ) and cut.Date

Ben Bolker bolker at ufl.edu
Thu Apr 29 14:29:18 CEST 2010


Felix Andrews <felix <at> nfrac.org> writes:

> 
> x <- seq(as.POSIXct("2000-01-01"), by = "days", length = 20)
> 
> cut(x, breaks = 3)
> # Error in `levels<-.factor`(`*tmp*`, value = character(0)) :
> #   number of levels differs
> 
> cut(as.Date(x), breaks = 3)
> # Error in `levels<-.factor`(`*tmp*`, value = character(0)) :
> #   number of levels differs


  Is this the same?

http://article.gmane.org/gmane.comp.lang.r.devel/22155/match=cut+posixt



More information about the R-devel mailing list