Hello,
I'm wondering if this is expected?
cut(structure(1, class=Date), structure(c(11100,1),
class=Date))
[1] NA
Levels: 2000-05-23
The help page says that for ‘Date’ objects, only ‘day’, ‘week’,
‘month’, ‘quarter’ and ‘year’ are allowed [for the 'breaks'
argument]. Though
On 17/09/2014 12:04, Benjamin Tyner wrote:
Hello,
I'm wondering if this is expected?
It is as documented!
cut(structure(1, class=Date), structure(c(11100,1),
class=Date))
[1] NA
Levels: 2000-05-23
The help page says that for ‘Date’ objects, only ‘day’, ‘week’,
Thanks Brian!
The confusion was due to my failure to notice that these two functions have
opposite defaults for 'right':
args(cut.default)
function (x, breaks, labels = NULL, include.lowest = FALSE, right = TRUE,
dig.lab = 3L, ordered_result = FALSE, ...)
args(cut.Date)
3 matches
Mail list logo