add.combi {MoBPS} | R Documentation |
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 |
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 |
Population list
Population list
data(ex_pop)
population <- creating.trait(ex_pop, n.additive = 100)
population <- add.combi(population, trait = 3, combi.weights = c(1,5))