R/check-ids-duplicate.R
check_indiv_ids_dup.Rd
Check uniqueness of individual and specimen IDs
check_indiv_ids_dup( data, empty_values = c(NA, ""), success_msg = "Individual IDs are unique", fail_msg = "Duplicate individual IDs found" ) check_specimen_ids_dup( data, empty_values = c(NA, ""), success_msg = "Specimen IDs are unique", fail_msg = "Duplicate specimen IDs found" )
data | Individual metadata file |
---|---|
empty_values | Values that are considered empty. Defaults to |
success_msg | Message indicating the check succeeded. |
fail_msg | Message indicating the check failed. |
A condition object indicating whether the individual IDs in the individual metadata file are unique.
#> <error/check_fail> #> Duplicate individual IDs founddat2 <- data.frame( individualID = c("x", "y", "z"), specimenID = c("a", "a", "b") ) check_specimen_ids_dup(dat2)#> <error/check_fail> #> Duplicate specimen IDs found