insert.pheno.single: Manually enter phenotypes

View source: R/insert.pheno.single.R

insert.pheno.singleR Documentation

Manually enter phenotypes

Description

Function to manually enter phenotypes (with repeated records)

Usage

insert.pheno.single(population, phenos, count.only.increase = TRUE)

Arguments

population

Population list

phenos

Matrix of breeding values to enter (one row per individual: 1st column: individual, 2nd column: trait nr, 3rd-nth column records)

count.only.increase

Set to FALSE to reduce the number of observation for a phenotype to "count" (default: TRUE)

Value

Population-List with newly entered phenotypes

Examples

data(ex_pop)
bv <- get.bv(ex_pop, gen=2, use.id = FALSE)
new.bve <- cbind( colnames(bv), 1, bv[,1]) ## Unrealistic but you do not get better than this!
ex_pop <- insert.pheno.single(ex_pop, phenos=new.bve)

MoBPS documentation built on Nov. 5, 2025, 6:26 p.m.