A fast check of join key quality that returns a simple pass/fail status
with a brief summary. Use this for quick validation; use join_spy() for
detailed diagnostics.
Value
Invisibly returns a logical: TRUE if no issues detected, FALSE otherwise.
Also prints a brief status message unless warn = FALSE.
Examples
orders <- data.frame(id = c(1, 2, 2, 3), value = 1:4)
customers <- data.frame(id = c(1, 2, 4), name = c("A", "B", "D"))
# Quick check
key_check(orders, customers, by = "id")
# Silent check
is_ok <- key_check(orders, customers, by = "id", warn = FALSE)