Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


R2ucare (version 1.0.2)

group_data: Group individual capture-recapture data in encounter histories

Description

This function pools together individuals with the same encounter capture-recapture history.

Usage

group_data(X, effX)

Value

matrix with grouped capture-recapture histories and counts in the last column

Arguments

X

matrix of capture-recapture histories

effX

vector with numbers of individuals with that particular capture-recapture history

Author

Olivier Gimenez <olivier.gimenez@cefe.cnrs.fr>, Roger Pradel, Rémi Choquet

Examples

Run this code
# Generate fake capture-recapture dataset
X = matrix(round(runif(300)),nrow=100)
freq=rep(1,100)
cbind(X,freq)
group_data(X,freq)

Run the code above in your browser using DataLab