Closed thoree closed 4 years ago
Thanks, this should now be caught in setMarkers()
:
library(pedtools)
x = nuclearPed()
m1 = marker(x, name = "M1")
m2 = marker(x, name = "M1")
x = setMarkers(x, list(m1, m2))
#> Error: Duplicated marker name: M1
Created on 2020-08-02 by the reprex package (v0.3.0)
Created on 2020-08-02 by the reprex package (v0.3.0)