[Rd] Bug in cut.Dates with single date and day breaks
hadley wickham
h.wickham at gmail.com
Fri Sep 12 04:45:26 CEST 2008
> cut(as.Date("2008-09-12"), "days")
Error in 1:(1 + max(which(breaks < maxx))) :
result would be too long a vector
In addition: Warning message:
In max(which(breaks < maxx)) :
no non-missing arguments to max; returning -Inf
> cut(as.Date("2008-09-12"), "weeks")
[1] 2008-09-08
Levels: 2008-09-08
> cut(as.Date("2008-09-12"), "7 days")
Error in 1:(1 + max(which(breaks < maxx))) :
result would be too long a vector
In addition: Warning message:
In max(which(breaks < maxx)) :
no non-missing arguments to max; returning -Inf
Hadley
--
http://had.co.nz/
More information about the R-devel
mailing list