llrs / rutils

Personal package for helping with my day to day work
https://llrs.github.io/rutils/
GNU General Public License v3.0
4 stars 0 forks source link

Explainer of merge #5

Open llrs opened 8 months ago

llrs commented 8 months ago

Add a function that when merging data will tell which variables make the join to expand.

Aka:

a <- data.frame(a = 1:3, b = 2:4)
b <- data.frame(a = 1:5, b = 3)
ab <- merge(a, b, all = TRUE)

That it can explain why merge output ab is now 7 rows long: Which variables caused this on which rows of each?