prephThreshDataUnImp: Prepare data frame of health in unimpacted females for %...

View source: R/prephThreshDataUnImp.R

prephThreshDataUnImpR Documentation

Prepare data frame of health in unimpacted females for % below barplot

Description

Goal is to look at the amount of time (in months) the whales are spending below certain health thresholds. The idea is to see if female whales are spending times in periods of low health and as a result have delayed or impaired fecundity. This function returns the health of these animals

Usage

prephThreshDataUnImp(healthmean, firstSight, lastSight, thold)

Arguments

healthmean

A 696 by 564 matrix of estimated health for all animals in the catalog dataset

firstSight

A length 696 vector of the first month each animal was seen

lastSight

A length 696 vector of the last month each animal was seen

thold

A scalar value of the health threshold to be examined.

Value

healthnew a 23 by 564 matrix of health estimates for unimpacted females calving females before they've had their first calf, that is we don't want to examine health after the animals have had a calf and are subject to natural fluctuations related to the calving and nursing cycle.

nAnimal the number of unimpacted females

Examples

## Not run: 
prephThreshDataUnImp(healthmean, firstSight, lastSight, thold)

## End(Not run)

robschick/tangled documentation built on May 9, 2022, 4:07 p.m.