insert.bve: Manually enter estimated breeding values

Description Usage Arguments Value Examples

View source: R/insert.bve.R

Description

Function to manually enter estimated breeding values

Usage

1
2
3
4
5
6
7
8
insert.bve(
  population,
  bves,
  type = "bve",
  na.override = FALSE,
  count = 1,
  count.only.increase = TRUE
)

Arguments

population

Population list

bves

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

type

which time of values to input (default: "bve", alt: "bv", "pheno")

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)

Value

Population-List with newly entered estimated breeding values

Examples

1
2
3
4
data(ex_pop)
bv <- get.bv(ex_pop, gen=2)
new.bve <- cbind( colnames(bv), bv[,1]) ## Unrealistic but you do not get better than this!
ex_pop <- insert.bve(ex_pop, bves=new.bve)

MoBPS documentation built on Nov. 9, 2021, 5:08 p.m.

Related to insert.bve in MoBPS...