Description Usage Arguments Details Examples
View source: R/check_pedigree_parent.R
Some descriptive statistics about the pedigree are collected. The main
check consists of the comparison of the birthdates of animals to the
birthdates of their parents. The check of birthdates can be parametrized
by a minimal tolerance of the difference using the argument pn_bd_tol
.
The last check lists all animals that have the same IDs as one of their
parents.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | check_pedig_parent(
ps_pedig_path,
ps_delim = "|",
ps_id_col = "#IDTier",
ps_sire_col = "IDVater",
ps_dam_col = "IDMutter",
ps_col_bd = "Birthdate",
pvec_sire_by = c(IDVater = "#IDTier"),
pvec_dam_by = c(IDMutter = "#IDTier"),
pvec_sire_suffix = c(".Tier", ".Vater"),
pvec_dam_suffix = c(".Tier", ".Mutter"),
pcol_types = NULL,
ptbl_pedigree = NULL,
pn_bd_tol = 0
)
|
ps_pedig_path |
path to the pedigree input file |
ps_delim |
column delimiting character |
ps_id_col |
column title for animal IDs |
ps_sire_col |
column title for sire IDs |
ps_dam_col |
column title for dam IDs |
ps_col_bd |
column title for birthdates |
pvec_sire_by |
by argument for inner_join with sires |
pvec_dam_by |
by argument for inner_join with dams |
pvec_sire_suffix |
suffix for birthdates used for sire comparison |
pvec_dam_suffix |
suffix for birthdates used for dam comparision |
pcol_types |
column types of pedigree in ps_pedig_path |
ptbl_pedigree |
tibble containing pedigree information |
pn_bd_tol |
minimal tolerance for age difference between animal and parents (in days) |
The comparison of the birthdates is done via a join of the parent birthdates to a tibble that consists of only animals, their birthdates and their parents. The comparison is done for sires and dams in two separate steps.
1 2 3 4 5 6 | ## Not run:
check_pedig_parent(ps_pedig_path = system.file('extdata',
'PopReport_SN_ohne_20210115.csv_adaptfin2.csv',
package = 'qprppedigree'))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.