ungroup_data: Ungroup encounter capture-recapture data in individual...

Description Usage Arguments Value Author(s) Examples

View source: R/ungroup_data.R

Description

This function splits encounter histories in as many individual histories as required.

Usage

1
ungroup_data(X, effX)

Arguments

X

matrix of encounter capture-recapture histories

effX

vector with numbers of individuals with that particular encounter history

Value

matrix with ungrouped capture-recapture histories and counts in the last column (should be 1s)

Author(s)

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

Examples

1
2
3
4
5
# Generate fake capture-recapture dataset
X = matrix(round(runif(9)),nrow=3)
freq=c(4,3,-8)
cbind(X,freq)
ungroup_data(X,freq)

R2ucare documentation built on May 2, 2019, 8:22 a.m.