
Assemble composite TBV from phenotype_components for a single phenotype
Source:R/add_phenotype.R
dot-assemble_composite_tbv.RdReads contributor TBVs from ind_tbv (which must already be populated by
add_tbv() for all relevant source traits and contributor IDs) and
multiplies by component weights, summing across all components.
Usage
.assemble_composite_tbv(
pop,
phenotype_name,
comp_rows,
subset_df,
missing_component_action = "skip"
)Arguments
- pop
A
tidybreed_popobject.- phenotype_name
Character. The composite phenotype name.
- comp_rows
Data frame. Rows from
phenotype_componentsfor this phenotype.- subset_df
Data frame. Sex-filtered (and skip-masked)
ind_metarows.- missing_component_action
Character.
"skip"(default) to warn and exclude individuals with any missing component (dam/sire/group TBV unavailable, no group assignment, etc.);"error"to stop immediately.