prephThreshDataRepro: Assemble health of impacted reproductively active females

View source: R/prephThreshDataRepro.R

prephThreshDataReproR Documentation

Assemble health of impacted reproductively active females

Description

This function takes heatlh estimates and intersects them with the entanglement information to find out the number of months each animal spent below a certain health threshold

Usage

prephThreshDataRepro(healthmean, thold)

Arguments

healthmean

Estimates of health from the model

thold

A scalar value of the health threshold to be examined.

Value

A list containing: 1) rfmthold A 6 by 6 data frame summarising the information about the number of months entangled whales are spending below certain health thresholds, and 2) dfout a 113 x 5 data frame containing the threshold data at the level of the infidividual, i.e. not summarised like in rfmthold

gearInj

The entanglement injury class of the animal. 1 = Severe w/Gear; 2 = Moderate w/Gear; 3 = Severe no gear; 4 = Minor w/Gear; 5 = Moderate no gear; 6 = Minor no gear

n

The number of cases in each of these categories

totNumMonths

The total number of months tallied up from each individual whale, i.e. total number of months all whales were entangled

maxDurMonths

Maximum length of any entanglement

sumBeltholdMonths

Sum of the number of months entangled whales were below the threshold

meanpthold

The mean (by entanglement) percentage of months the animal was below a threshold value during the event

Examples

## Not run: 
prephThreshDataRepro(healthmean, thold)     

## End(Not run)

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