matrix_L_from_pedigree: given a pedigree as a data frame return the L matrix

Description Usage Arguments Examples

Description

given a pedigree as a data frame return the L matrix

Usage

1

Arguments

D

a data frame with columns id, mom, dad, and sex that can be read into kinship2's pedigree function

Ids

the IDs/labels of the individuals you want the matrix to refer to (i.e. the sampled individuals.)

Examples

1
2
3
4
example(read_colony_best_config)
# here are the ones we are interested in
Ids <- bcped$id[!is.na(bcped$dad)]
Lmat <- matrix_L_from_pedigree(bcped, Ids)

eriqande/afblue documentation built on May 16, 2019, 8:44 a.m.