combine.traits {MoBPS}R Documentation

Combine traits

Description

Function to combine traits in the BVE

Usage

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

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)

[Package MoBPS version 1.6.64 Index]