powered by
Function to create an additional trait that is the results of a linear combination of the other traits
add.combi(population, trait, combi.weights, trait.name = NULL)
Population list
population list
trait nr. for which to implement a combination of other traits
Weights (only linear combinations of other traits are allowed!)
Name of the trait generated
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))
Run the code above in your browser using DataLab