Compares IDs between two data frames to detect lost rows.
Value
A list with:
lost: IDs present inbeforebut notaftergained: IDs present inafterbut notbeforepreserved: IDs present in both
Examples
df1 <- add_id(data.frame(x = 1:5))
df2 <- df1[1:3, ]
compare_ids(df1, df2)