receptivityByDay: Mating Receptivity by Day

Description Usage Arguments Value Author(s) Examples

Description

Create a matrix showing which individuals are receptive on a given day.

Usage

1
receptivityByDay(scene, summary = FALSE, nameDate = TRUE)

Arguments

scene

a matingScene object

summary

logical, summarizes number of receptive individuals on each day

nameDate

logical, if summary = TRUE, option to name indices of the vector by the date they represent (rather than named relative to first day of receptivity in a season)

Value

if summary = FALSE (default), a matrix where the columns represent all mating days and the rows represent all individuals in the population. If summary = TRUE, a named vector where each index gives the number of receptive individuals on a given day and is named by the day it represents. If a matrix, the value at position [i,j] will be TRUE if individual j was receptive on day i
If scene is a multi-year matingScene, then receptivityByDay will return a list of matrices (as described above) where each matrix represents one year.

Author(s)

Danny Hanson

Examples

1
2
pop <- simulateScene(size = 10)
receptivityByDay(pop)

danhan52/mateable documentation built on May 14, 2019, 3:35 p.m.