as.record: Transform observed data to ascertainment records

Description Usage Arguments Details Value Examples

View source: R/as.record.R

Description

Transform observed data to ascertainment records.

Usage

1

Arguments

x

the matrix of the observed capture histories

Details

x has one row per unit captured in the experiment. Each row is an observed capture history. It must contain only zeros and ones; the number one indicates a capture. In this case, the number of columns in the table represents the number of capture occasions in the experiment (noted t). Here is a fictive example of a data set of this type for t=3:

[1,] 0 1 0
[2,] 1 0 1
[3,] 0 1 0
[4,] 0 1 1
[5,] 1 0 1
[6,] 1 0 1
[7,] 0 0 1
[8,] 0 1 0
[9,] 0 1 0
[10,] 1 1 0

Value

the vector of capture histories or ascertainment records.

Examples

1
2
x=matrix(sample(0:1,300,TRUE),ncol=3)
as.record(x)

CARE1 documentation built on May 2, 2019, 4:06 p.m.