powered by
Get indice of family and within-family
getfam(sir, dam, fam.op, mode = c("pat", "mat", "pm"))
a matrix with family indice and within-family indice.
the indice of sires.
the indice of dams.
the initial index of family indice.
"pat": paternal mode; "mat": maternal mode; "pm": paternal and maternal mode.
Dong Yin
Build date: Nov 14, 2018 Last update: Apr 30, 2022
s <- c(0, 0, 0, 0, 1, 3, 3, 1, 5, 7, 5, 7, 1, 3, 5, 7) d <- c(0, 0, 0, 0, 2, 4, 4, 2, 6, 8, 8, 6, 6, 8, 4, 8) fam <- getfam(sir = s, dam = d, fam.op = 1, mode = "pm") fam
Run the code above in your browser using DataLab