makeEvents: Return 'events' data frame of last entanglement event

Description Usage Value Examples

View source: R/makeEvents.R

Description

Goal of this function is to take data that are stored in the package including the entanglement information, and the estimated median death times, and prepare a data frame that only has the last entanglement event for each animal in the database. This is because we want to look at survival following these events, and compare the impact of different types of entanglement on the survivorship.

Usage

1

Value

events a 464 by 26 data frame where each row has the information on the entanglement event. I'm starting with tangleOut and to that am adding 5 columns:

dtime

Integer denoting the maximum value in deathyr which is a matrix of estimated or fixed deaths for all animals in the population. This is a key variable because it allows us to calculate survivorship

knownD

logical: If there is no uncertainty in death and the death is less than dcut, then this animal is known to be dead. n.b. this can be tested against the input data from NEAq

presD

logical: If there is uncertainty in death and the death is less than dcut, then this animal is presumed dead

presA

logical: If there is uncertainty in death and the death is greater than dcut, then this animal is presumed alive

ewindmonyrID

Integer noting the end of the entanglement window

Examples

1

robschick/tangled documentation built on March 19, 2018, 1:15 p.m.