randomMatches: Random Mating

Description Usage Arguments Value

View source: R/reproduce.R

Description

Default function to govern mating. Each fertile female mates with a randomly-selected male. If the user chooses to modify this a as custom function for the mating_behavior, in simulate it shold be noted that the current values of of individuals and number_of_couples will be provided by the program.

Usage

1
randomMatches(individuals, number_of_couples)

Arguments

individuals

Data frame containing id, sex, warner-status, mother id and father id.

number_of_couples

Number of couples to form in the current generation.

Value

A named list with two elements:

females

character vector of id numbers of females

males

character vector of id numbers of females

The two vectors are of the same length. Corresponding elements represent a couple.


homerhanumat/simaltruist documentation built on May 25, 2019, 5:26 p.m.