Learn R Programming

MoBPS (version 1.13.1)

merging.cohorts: Merging of cohorts

Description

Function to merge cohorts in a population list

Usage

merging.cohorts(population, cohorts, name.cohort = NULL)

Arguments

population

Population list

cohorts

Quick-insert for database (vector of names of cohorts to export)

name.cohort

Name of the newly added cohort

Examples

Run this code
data(ex_pop)
population <- breeding.diploid(ex_pop, add.gen = 7, breeding.size = 50)
population <- breeding.diploid(population, add.gen = 7, breeding.size = 50,
 selection.m.database = cbind(6,1), selection.f.database = cbind(6,2))
population <- merging.cohorts(population, cohorts = c("Cohort_7_M", "Cohort_8_M"))

Run the code above in your browser using DataLab