[datatable-help] head.data.table does not support negative arguments?

Matthew Dowle mdowle at mdowle.plus.com
Wed Apr 24 21:28:42 CEST 2013


Yes, known and already filed. Thanks.
Matthew

On 24.04.2013 20:25, Sam Steingold wrote:
> is this a bug?
> --8<---------------cut here---------------start------------->8---
>> head(1:10,-3)
> [1] 1 2 3 4 5 6 7
>> head(data.frame(a=1:5,b=5:9),-2)
>   a b
> 1 1 5
> 2 2 6
> 3 3 7
>> head(data.table(a=1:5,b=5:9),-2)
> Error in seq_len(min(n, nrow(x))) :
>   argument must be coercible to non-negative integer
> Calls: head -> head.data.table
> --8<---------------cut here---------------end--------------->8---



More information about the datatable-help mailing list