powered by
Function to add fixed effects to existing set of traits
add.fixed.effects(population, fixed.effects, replace = FALSE)
Population list
population list
Matrix containing fixed effects (p x k -matrix with p being the number of traits and k being number of fixed effects; default: not fixed effects (NULL))
Set to TRUE to delete previously added fixed effects
data(ex_pop) population <- add.fixed.effects(ex_pop, fixed.effects = matrix(c(3,5), nrow=1))
Run the code above in your browser using DataLab