magnusdv / pedtools

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

componentwise `nMarkers()` #46

Closed magnusdv closed 1 year ago

magnusdv commented 1 year ago

nMarkers() should have an option to report number of markers for each component.

library(pedtools)

x = list(singleton("A") |> addMarker(),
         singleton("B"))

nMarkers(x)
#> Error: The pedigree components have different number of markers attached

Created on 2023-09-06 with reprex v2.0.2