magnusdv / pedtools

Tools for working with pedigrees in R
GNU General Public License v3.0
23 stars 3 forks source link

validate_ped #4

Closed thoree closed 6 years ago

thoree commented 6 years ago
library(pedtools)
x = nuclearPed(nch = 2, children = 3:4)
validate_ped(x) # OK, but
x = nuclearPed(nch = 2, children = 1:2)
validate_ped(x)
#> Error: Malformed pedigree.
#>  Duplicated ID label: 1
#>  Duplicated ID label: 2

Created on 2018-08-15 by the reprex package (v0.2.0).