powered by
Verifies that ID columns don't overlap between datasets. Useful before binding datasets to ensure no ID collisions.
check_id_disjoint(..., .id = ".id")
Invisibly returns a list with:
disjoint: TRUE if no overlaps found
disjoint
overlaps: character vector of overlapping IDs (if any)
overlaps
Data frames to check.
Column name for IDs (default: ".id").
df1 <- add_id(data.frame(x = 1:3)) df2 <- add_id(data.frame(x = 4:6)) check_id_disjoint(df1, df2)
Run the code above in your browser using DataLab