Skip to contents

Observed fertility rate from egg surveys.

Usage

fertility_rate(x, species = NULL, pool = FALSE)

Arguments

x

Either a sit or a sit_egg_surveys object.

species

Character. Filter results for a given species or ignore the species if missing.

pool

Logical. If TRUE pools fertile and sterile counts from all traps and survey dates. Otherwise (default) yields results by trap and survey date.

Value

If pool = TRUE, a number. Otherwise, a data.frame with counts of fertile and sterile eggs by trap and survey period, with the corresponding proportion of fertile eggs.

Details

The sit method uses all egg surveys in the study. For a sit object x, fertility_rate(x) is thus equivalent to fertility_rate(sit_egg_surveys(x)).

Examples

fertility_rate(sit_prototype, pool = TRUE)
#> [1] 0.7617323