Ensure two data.table are merged properly. Necessary due to inconsistencies with how data.table are evaluated in different scopes.
merge_robust(x, y, by = NULL, dup_stop = TRUE, na_stop = TRUE, ...)
data table
s. y
is coerced to a data.table
if
it isn't one already.
A vector of shared column names in x
and y
to merge on.
This defaults to the shared key columns between the two tables.
If y
has no key columns, this defaults to the key of x
.
Throw an error if duplicates of the by
column are detected after merging.
Throw an error if all of the data from y
has been converted to NAs (unless they were all NAs before merging).
Additional arguments passed to merge.data.table.