calculate_cohort_size: Calculate den cohort size experienced by each cub

View source: R/calculate_cohort_size.R

calculate_cohort_sizeR Documentation

Calculate den cohort size experienced by each cub

Description

Calculates a cohort size (and cohort members) experienced by the supplied cub. Cohorts are specific to each cub. To be included in a cohort, cubs must have a den period that overlaps with the focal cub by at least 4 months and must be seen with focal cub at least once while they are both den dependent. Den period is calculated as (dob to dengrad), (dob to 1yr old) if no dengrad specified, or (dob to disappeared) if the cub died before graduation or 1 year old.

Usage

calculate_cohort_size(ids)

Arguments

List

of ids to calculate cohort size for

Value

A data frame with the ids supplied, size of cohort, whether the id survived to graduation (1 = yes, 0 = no) and the list of cubs in the cohort (this list includes the id provided, but the cohort size does not).


MaraHyenaProject/hyenatools documentation built on Jan. 30, 2025, 5:10 p.m.