View source: R/simer.Reproduces.r
getfam | R Documentation |
Get indice of family and within-family
getfam(sir, dam, fam.op, mode = c("pat", "mat", "pm"))
sir |
the indice of sires. |
dam |
the indice of dams. |
fam.op |
the initial index of family indice. |
mode |
"pat": paternal mode; "mat": maternal mode; "pm": paternal and maternal mode. |
Build date: Nov 14, 2018 Last update: Apr 30, 2022
a matrix with family indice and within-family indice.
Dong Yin
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.