hadley wickham
2008-Sep-12 02:45 UTC
[Rd] Bug in cut.Dates with single date and day breaks
> 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/