magnusdv / pedtools

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

`addParents()` should add parents *before* the child #8

Closed magnusdv closed 6 years ago

magnusdv commented 6 years ago

... not append them at the end.

library(pedtools)
addParents(singleton(1), 1)
#> Father: Creating new individual with ID = 2
#> Mother: Creating new individual with ID = 3
#>  id fid mid sex
#>   1   2   3   1
#>   2   *   *   1
#>   3   *   *   2