I am currently accustoming myself with data.table (for the a m a z i n g speed, as well as non-equi-joins).
I find the join-syntax a little counterintuitive, could someone help me out, how to look at left and right joins the "data.table"-way?
Examples from r-datatable.com
require(data.table)
example(data.table)
# joins as subsets
X = data.table(x=c("c","b"), v=8:7, foo=c(4,2))
X
DT[X, on="x"] # right join
X[DT, on="x"] # left join
Right Join is the default and the new object (X) is right joined?
merge, which in my opinion in most cases is just more intuitive. See also rstudio-pubs-static.s3.amazonaws.com/… - hannes101data.tableobjects. Method dispatching will make sure that you get data.table's speed gain. - abhiieorX[Y]join it means: "For every value inYtry to join a value fromX", hence, basically this is a left join toYand the result will be the length ofY(I agree it's kind of counter-intuitive). - David Arenburg