This function checks for duplicate variables in a data frame based on a provided hash vector.
It prints out the names of duplicate variables and returns a logical vector indicating which
rows are duplicates.
Arguments
- df
A data frame containing the variables to be checked for duplicates.
- vhash
A vector of hash values corresponding to each variable in the data frame.
This is typically computed using a hashing function like `rlang::hash()`.
Value
A logical vector indicating which variables are duplicates.
Examples
if (FALSE) {
vhash <- sapply(df, rlang::hash) # Generate hash values for variables
get_dupes(df, vhash) # Identify and print duplicate variables
}