combine.traits: Combine traits

Description Usage Arguments Value Examples

View source: R/combine.traits.R

Description

Function to combine traits in the BVE

Usage

1
2
3
4
5
6
7
combine.traits(
  population,
  combine.traits = NULL,
  combine.name = NULL,
  remove.combine = NULL,
  remove.all = FALSE
)

Arguments

population

Population list

combine.traits

Vector containing the traits (numbers) to combine into a joined trait

combine.name

Name of the combined trait

remove.combine

Remove a selected previously generated combined trait

remove.all

Set TRUE to remove all previously generated combined traits

Value

Population-list

Examples

1
2
3
population <- creating.diploid(nsnp=100, nindi=100, n.additive = c(50,50))
population <- combine.traits(population, combine.traits=1:2)
population <- breeding.diploid(population, bve=TRUE, phenotyping.gen=1, heritability=0.3)

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

Related to combine.traits in MoBPS...