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

Sam Steingold sds at gnu.org
Wed Apr 24 21:25:46 CEST 2013


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

-- 
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.10 (quantal) X 11.0.11300000
http://www.childpsy.net/ http://camera.org http://openvotingconsortium.org
http://truepeace.org http://pmw.org.il http://palestinefacts.org
Children fear dentists because of pain, adults - because of bills.


More information about the datatable-help mailing list