ungroup_data | R Documentation |
This function splits encounter histories in as many individual histories as required.
ungroup_data(X, effX)
X |
matrix of encounter capture-recapture histories |
effX |
vector with numbers of individuals with that particular encounter history |
matrix with ungrouped capture-recapture histories and counts in the last column (should be 1s)
Olivier Gimenez <olivier.gimenez@cefe.cnrs.fr>, Roger Pradel, RĂ©mi Choquet
# Generate fake capture-recapture dataset X = matrix(round(runif(9)),nrow=3) freq=c(4,3,-8) cbind(X,freq) ungroup_data(X,freq)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.