transform_unique_animal_id: Transformation after check for uniqueness of Animal-IDs in a...

Description Usage Arguments Value

View source: R/pedigree_transformation_tbl_df.R

Description

A given pedigree is transformed such that the resulting pedigree has only unique animal-IDs. The pedigree-records , we first test whether there are any duplicate records, using the corresponding check-function for uniqueness of IDs. If duplicate records are found, we run a series of dplyr::group_by - dplyr::summarise - dplyr::filter - operations to retain just the unique records.

Usage

1
2
transform_unique_animal_id(ptbl_pedigree, output_check,
  pn_ani_id_col_idx = getTvdIdColsDsch()$TierIdCol, pb_out = FALSE)

Arguments

ptbl_pedigree

pedigree in tbl_df format

output_check

output of function check_unique_animal_id

pn_ani_id_col_idx

column index for animal-ID in pedigree

pb_out

flag whether debugging output should be written

Value

tbl_transform_ped of pedigree records not fullfilling requirements


pvrqualitasag/PedigreeFromTvdData documentation built on May 29, 2019, 7:50 a.m.