Part of Pedigree Curation
removeDuplicates(ped, reportErrors = FALSE)
ped | dataframe that is the `Pedigree`. It contains pedigree
information. The |
---|---|
reportErrors | logical value if TRUE will scan the entire file and make a list of all errors found. The errors will be returned in a list of list where each sublist is a type of error found. |
Pedigree object with all duplicates removed.
Returns an updated dataframe with duplicate rows removed.
Returns an error if the table has duplicate IDs with differing data.
# \donttest{ ped <- nprcgenekeepr::smallPed newPed <- cbind(ped, recordStatus = rep("original", nrow(ped))) ped1 <- removeDuplicates(newPed) nrow(newPed)#> [1] 17#> [1] 17#> [1] 20#> [1] 17# }