add.combi: Add a trait as a linear combination of other traits

View source: R/add.combi.R

add.combiR Documentation

Add a trait as a linear combination of other traits

Description

Function to create an additional trait that is the results of a linear combination of the other traits

Usage

add.combi(population, trait, combi.weights, trait.name = NULL)

Arguments

population

population list

trait

trait nr. for which to implement a combination of other traits

combi.weights

Weights (only linear combinations of other traits are allowed!)

trait.name

Name of the trait generated

Value

Population list

Population list

Examples

data(ex_pop)
population <- creating.trait(ex_pop, n.additive = c(100,100), replace.traits = TRUE)
population <- add.combi(population, trait = 3, combi.weights = c(1,2))

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

Related to add.combi in MoBPS...