Description Usage Arguments Examples
given a pedigree as a data frame return the L matrix
1 | matrix_L_from_pedigree(D, Ids)
|
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.) |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.