I've been searching around this morning to try to figure out if the failure below is expected but haven't found anything. Could anyone help point me to a related discussion? Otherwise, I might submit as an issue. Appreciate it.
library(data.table)
x <- data.table( a = 1:3 )
y <- data.table( a = 2:4 )
z <- data.table( a = 3:5 )
# works
merge( x , y )
# works
merge( y , z )
# fails
merge( x , merge( y , z ) )
# Error in merge.data.table(x, merge(y, z)) :
# A non-empty vector of column names for `by` is required.
# works
merge( merge( x , y ) , z )
data.table
as it works withdata.frame
. – Too