View source: R/pedigree_fix_fuctions.R
complete_ped_links | R Documentation |
This fills in missing pedigree links in a random fashion using plausable individuals. It for individuals with missing sires or dams it selects a parent that could have been alive within a suitable time period
complete_ped_links(
pedigree,
founders,
rep_years_sire = c(2, 10),
rep_years_dam = c(2, 10),
cohorts = NULL
)
pedigree |
A data frame or matrix. A pedigree with ID, Sire and Dam, Sex columns |
founders |
A vector of founder IDs matching those in the pedigree |
rep_years_sire |
vector. A vector of length 2, the first value is the time until a male is reproductively active and the second value the time a male is no longer reproductively active. Default: c(2,10) |
rep_years_dam |
vector. A vector of length 2, the first value is the time until a female is reproductively active and the second value the time a female is no longer reproductively active. Default: c(2,10) |
cohorts |
An optional vector, the same length of the pedigree containing cohort information which can be provided if there is not a cohort column in the pedigree |
###
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.