powered by
Function to compute empirical kinship for a set of individuals
kinship.emp( population = NULL, animals = NULL, gen = NULL, database = NULL, cohorts = NULL, sym = FALSE, use.id = TRUE )
Empirical kinship matrix (IBD-based since Founders)
Population list
List of animals to compute kinship for
Quick-insert for database (vector of all generations to export)
Groups of individuals to consider for the export
Quick-insert for database (vector of names of cohorts to export)
If True derive matrix entries below principle-diagonal
Set TRUE to use animal IDs for column/row-names in the output matrix (default: TRUE)
data(ex_pop) kinship <- kinship.emp(population=ex_pop, database=cbind(2,1,1,25))
Run the code above in your browser using DataLab