
Assemble the composite genetic value of one phenotype from phenotype_components
Source: R/add_phenotype.R
dot-assemble_composite_tgv.RdSums weight * contributor genetic value over the phenotype's component
rows, one contributor lookup per row (see ?contributor_tgv). Each row
reads its component_names ("total" by default) from ind_tgv, which
must already hold the source traits for every contributor
(.ap_materialize_tgvs()). A missing piece — a NULL dam or sire, a
contributor with no ind_tgv row, a NULL group value, a NULL
covariate — makes the individual's composite NA.
Usage
.assemble_composite_tgv(
pop,
phenotype_name,
comp_rows,
subset_df,
missing_component_action
)