Learn R Programming

R2ucare (version 1.0.2)

read_headed: Read capture-recapture data with Headed format used by program E-SURGE

Description

This function reads in capture-recapture dataset with the Headed format. It ignores all forms of censorship for now, and drops continuous covariates because no goodness-of-fit test exists for such models

Usage

read_headed(file)

Value

list with first component the matrix of encounter histories, second components the vector of number of individuals with corresponding histories and, if relevant, third component vector/matrix with group(s)

Arguments

file

text file with Headed format

Author

Olivier Gimenez <olivier.gimenez@cefe.cnrs.fr>

Examples

Run this code
# read in Dipper dataset
dipper = system.file("extdata", "ed.txt", package = "R2ucare")
read_headed(dipper)
# read in Geese dataset
geese = system.file("extdata", "geese.txt", package = "R2ucare")
read_headed(geese)

Run the code above in your browser using DataLab