receptivityByDay: Mating Receptivity by Day

View source: R/temporalDataFunctions.R

receptivityByDayR Documentation

Mating Receptivity by Day

Description

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

Usage

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, Amy Waananen

Examples

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

stuartWagenius/mateable documentation built on Feb. 9, 2023, 2:33 p.m.