Merging tables with data.table - programming with R