getfam {simer}R Documentation

Family index and within-family index

Description

Get indice of family and within-family

Usage

getfam(sir, dam, fam.op, mode = c("pat", "mat", "pm"))

Arguments

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.

Details

Build date: Nov 14, 2018 Last update: Apr 30, 2022

Value

a matrix with family indice and within-family indice.

Author(s)

Dong Yin

Examples

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

[Package simer version 0.9.0.4 Index]