assert_no_duplicates_in_group.Rd
This function asserts that there are no duplicate rows in the specified columns of a data frame.
It groups the data frame by the specified columns, counts the number of unique values for each group, and checks if there are any groups with more than one row.
If there are, it prints an error message and stops the execution (unless assertion_fail
is set to "warn").
assert_no_duplicates_in_group(df, group_vars, assertion_fail = "stop")
The input data frame.