group_data {R2ucare}R Documentation

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)

Arguments

X

matrix of capture-recapture histories

effX

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

Value

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

Author(s)

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

Examples

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

[Package R2ucare version 1.0.2 Index]