magnusdv / pedtools

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

`print.ped()` should return the pedigree (not the data frame) invisibly #43

Closed magnusdv closed 1 year ago

magnusdv commented 1 year ago
x = pedtools::nuclearPed() |> print()
#>  id fid mid sex
#>   1   *   *   1
#>   2   *   *   2
#>   3   1   2   1

class(x)
#> [1] "data.frame"

Created on 2023-03-24 with reprex v2.0.2