batchtools:::example_push_temp(1)
# Create two tables for demonstration
tmp = makeRegistry(file.dir = NA, make.default = FALSE)
batchMap(identity, x = 1:6, reg = tmp)
x = getJobPars(reg = tmp)
y = findJobs(x >= 2 & x <= 5, reg = tmp)
y$extra.col = head(letters, nrow(y))
# Inner join: similar to intersect(): keep all columns of x and y with common matches
ijoin(x, y)
# Left join: use all ids from x, keep all columns of x and y
ljoin(x, y)
# Right join: use all ids from y, keep all columns of x and y
rjoin(x, y)
# Outer join: similar to union(): keep all columns of x and y with matches in x or y
ojoin(x, y)
# Semi join: filter x with matches in y
sjoin(x, y)
# Anti join: filter x with matches not in y
ajoin(x, y)
# Updating join: Replace values in x with values in y
ujoin(x, y)
Run the code above in your browser using DataLab