Build a checklist for power joins
check_specs(
implicit_keys = c("inform", "ignore", "warn", "abort"),
column_conflict = c("ignore", "inform", "warn", "abort"),
duplicate_keys_left = c("ignore", "inform", "warn", "abort"),
duplicate_keys_right = c("ignore", "inform", "warn", "abort"),
unmatched_keys_left = c("ignore", "inform", "warn", "abort"),
unmatched_keys_right = c("ignore", "inform", "warn", "abort"),
missing_key_combination_left = c("ignore", "inform", "warn", "abort"),
missing_key_combination_right = c("ignore", "inform", "warn", "abort"),
inconsistent_factor_levels = c("ignore", "inform", "warn", "abort"),
inconsistent_type = c("ignore", "inform", "warn", "abort"),
grouped_input = c("ignore", "inform", "warn", "abort"),
na_keys = c("ignore", "inform", "warn", "abort")
)A character vector of class "powerjoin_check"
What to do if keys are not given explicitly through the
by argument
What to do if the join creates a column conflict which
is not handled by the conflict argument
What to do if we find duplicate sets of keys in the left table
What to do if we find duplicate sets of keys in the right table
What to do if we find unmatched sets of keys in the left table
What to do if we find unmatched sets of keys in the right table
What to do if the left table doesn't contain all key combinations
What to do if the right table doesn't contain all key combinations
What to do if the key columns from both sides have inconsistent factor levels
What to do if we joined keys have a different type
What to do if one or both of the tables are grouped
What to do if keys contain missing values
check_specs(
implicit_keys = "ignore",
grouped_input = "inform",
column_conflict = "abort",
na_keys ="warn")
Run the code above in your browser using DataLab