group_data: Group individual capture-recapture data in encounter...

View source: R/group_data.R

group_dataR 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)

R2ucare documentation built on July 11, 2022, 9:06 a.m.