View source: R/check-ids-duplicate.R
| check_indiv_ids_dup | R Documentation |
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.
dat1 <- data.frame(individualID = c("x", "y", "z", "z"))
check_indiv_ids_dup(dat1)
dat2 <- data.frame(
individualID = c("x", "y", "z"),
specimenID = c("a", "a", "b")
)
check_specimen_ids_dup(dat2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.