From h.wickham at gmail.com  Fri Sep 12 04:45:26 2008
From: h.wickham at gmail.com (hadley wickham)
Date: Thu, 11 Sep 2008 21:45:26 -0500
Subject: [Rd] Bug in cut.Dates with single date and day breaks
Message-ID: <f8e6ff050809111945l364eb05fu8800a35dc7f577ee@mail.gmail.com>

> 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/



[Rd] Bug in cut.Dates with single date and day breaks
hadley wickham