Learn R Programming

MoBPS (version 1.13.1)

inbreeding.emp: Empirical kinship

Description

Function to compute empirical kinship for a set of individuals)

Usage

inbreeding.emp(
  population = NULL,
  animals = NULL,
  gen = NULL,
  database = NULL,
  cohorts = NULL,
  use.id = TRUE
)

Value

Empirical kinship matrix (IBD-based since Founders)

Arguments

population

Population list

animals

List of animals to compute kinship for

gen

Quick-insert for database (vector of all generations to export)

database

Groups of individuals to consider for the export

cohorts

Quick-insert for database (vector of names of cohorts to export)

use.id

Set TRUE to use animal IDs for column/row-names in the output matrix (default: TRUE)

Examples

Run this code
data(ex_pop)
inbreeding <- inbreeding.emp(population=ex_pop, database=cbind(3,1,1,25))

Run the code above in your browser using DataLab