powered by
Warns if a join will produce a very large result due to many-to-many relationships (Cartesian product explosion).
check_cartesian(x, y, by, threshold = 10)
A list with explosion analysis.
A data frame (left table).
A data frame (right table).
Column names to join by.
Warn if result will exceed this many times the larger input. Default 10.
join_spy(), join_strict()
join_spy()
join_strict()
# Dangerous: both tables have duplicates x <- data.frame(id = c(1, 1, 2, 2), val_x = 1:4) y <- data.frame(id = c(1, 1, 2, 2), val_y = 1:4) check_cartesian(x, y, by = "id")
Run the code above in your browser using DataLab