make.prevcap: Make binary covariate for previous capture

Description Usage Arguments Value

View source: R/crfunctions.R

Description

Makes an indicator variable for whether or not an animal has been captured before each occasion.

Usage

1
make.prevcap(chmat)

Arguments

chmat

Capture history matrix.

Value

The function returns a matrix with one row per individual, one column per occasion, with a 0 indicating the animal had not been captured before an a 1 indicating that it had.


david-borchers/mt5751a documentation built on Feb. 22, 2021, 4:01 a.m.