Re: [R] rbinlist for data.table and specifying the column class

2013-09-18 Thread arun
Hi, Try: rbindlist(list(list(a=NA_integer_,b=NA),list(a=20,b=FALSE))) #    a b #1: NA    NA #2: 20 FALSE A.K. - Original Message - From: Saptarshi Guha To: "R-help@r-project.org" Cc: Sent: Wednesday, September 18, 2013 6:56 PM Subject: [R] rbinlist for data.table and

[R] rbinlist for data.table and specifying the column class

2013-09-18 Thread Saptarshi Guha
hello, This rbindlist(list(list(a=NA,b=NA),list(a=20,b=FALSE))) returns a b 1: NANA 2: TRUE FALSE as per the documentation ?rbindlist is there a way to specify the column class of 'a' to be numeric? In actual usage, i wont be able to re-order the 2nd list entry to be the firs