<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Garrett,</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Seems like it works fine in 1.9.2. I'd say it's a bug introduced due to changes in 1.9.3. Could you please file it as one? Thanks.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div> <div id="bloop_sign_1399589965374033920" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px">Arun</div></div> <div style="color:black"><br>From: <span style="color:black">G See</span> <a href="mailto:gsee000@gmail.com">gsee000@gmail.com</a><br>Reply: <span style="color:black">G See</span> <a href="mailto:gsee000@gmail.com">gsee000@gmail.com</a><br>Date: <span style="color:black">May 9, 2014 at 12:57:15 AM</span><br>To: <span style="color:black">datatable-help@lists.r-forge.r-project.org</span> <a href="mailto:datatable-help@lists.r-forge.r-project.org">datatable-help@lists.r-forge.r-project.org</a><br>Subject: <span style="color:black"> [datatable-help] merge zero row data.table <br></span></div><br> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>Hi,
<br>
<br>Is the following error expected?
<br>
<br>> library(data.table)
<br>data.table 1.9.3 For help type: help("data.table")
<br>> a <- data.table(BOD, key="Time")
<br>> b <- data.table(BOD, key="Time")[Time < 0] # zero row data.table
<br>> merge(a,b, all=TRUE) # works fine
<br> Time demand.x demand.y
<br>1: 1 8.3 NA
<br>2: 2 10.3 NA
<br>3: 3 19.0 NA
<br>4: 4 16.0 NA
<br>5: 5 15.6 NA
<br>6: 7 19.8 NA
<br>> merge(b,a, all=TRUE) # error
<br>Error in setcolorder(dt, c(setdiff(names(dt), end), end)) :
<br> neworder is length 2 but x has 3 columns.
<br>
<br>Thanks,
<br>Garrett
<br>
<br>p.s. using svn Rev. 1263
<br>_______________________________________________
<br>datatable-help mailing list
<br>datatable-help@lists.r-forge.r-project.org
<br>https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
<br></div></div></span></blockquote></body></html>