powered by
Function to overwrite class values for individuals
set.class( population, database = NULL, gen = NULL, cohorts = NULL, new.class = 0 )
Population-List with newly entered class values
Population list
Groups of individuals to consider for the export
Quick-insert for database (vector of all generations to export)
Quick-insert for database (vector of names of cohorts to export)
Class to change to (either single character or vector for each individual when just a single group is selected)
data(ex_pop) population <- set.class(ex_pop, database=cbind(1,1), new.class = 2)
Run the code above in your browser using DataLab