powered by
Shows a side-by-side comparison of key statistics before and after a join operation.
join_diff(before, after, by = NULL)
Invisibly returns a comparison summary. Prints a formatted comparison.
The original data frame (before joining).
The result data frame (after joining).
Optional. Column names to analyze for key statistics.
join_explain(), join_spy()
join_explain()
join_spy()
before <- data.frame(id = 1:3, x = letters[1:3]) after <- data.frame(id = c(1, 2, 2, 3), x = c("a", "b", "b", "c"), y = 1:4 ) join_diff(before, after)
Run the code above in your browser using DataLab