calcSurvivalTime: Calculate time of death

Description Usage Arguments Value Examples

Description

This method determines at which point an animal died during an experiment. This is computed by finding the last time period in which an animal moved. If an animal continued moving (and was alive) until the end of an experiment, this function returns NA for that animal.

Usage

1
calcSurvivalTime(obj, ..., endThresh = 4)

Arguments

obj

A valid DAM S4 object.

endThresh

An optional parameter specifying how long (in hours) an animal must remain motionless before it can be considered "dead." Does not affect the index of death.

Value

Returns the index at which animals in a dataset died. Returns NAs for animals that remained alive at experiment conclusion.

Examples

1

kazi11/actmon documentation built on May 20, 2019, 7:53 a.m.