Learn R Programming

MoBPS (version 1.13.1)

insert.bv: Manually enter breeding values

Description

Function to manually enter breeding values

Usage

insert.bv(
  population,
  bvs,
  na.override = FALSE,
  count = 1,
  count.only.increase = TRUE
)

Value

Population-List with newly entered breeding values

Arguments

population

Population list

bvs

Matrix of phenotypes to enter (one row per individual with 1 element coding individual name)

na.override

Set to TRUE to also enter NA values (Default: FALSE - those entries will be skipped)

count

Counting for economic cost calculation (default: 1 - (one observation (for "pheno"), one genotyping (for "bve")))

count.only.increase

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

Examples

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

Run the code above in your browser using DataLab