Last data update: 2014.03.03

R: List all the observable partial capture histories
list.historylabelsR Documentation

List all the observable partial capture histories

Description

This function returns a list of all the observable partial capture histories which can be recorded in a discrete-time capture-recapture setting with t consecutive trapping occasions. The observable partial capture histories are 2^t-1

Usage

list.historylabels(t,t.max=15)

Arguments

t

a positive integer representing the total number of trapping occasions

t.max

a positive integer representing upper bound on the total number of trapping occasions allowed.

Details

For obvious computing/memory reasons t is not allowed to be arbitrarily large. With t.max=15 there are 32767 possible partial capture histories. If t>t.max the function stops with an error message.

Value

A list of all the observable partial capture histories which can be recorded in a discrete-time capture-recapture setting with t consecutive trapping occasions. If t>t.max the function stops with an error message.

Author(s)

Danilo Alunni Fegatelli and Luca Tardella

See Also

partition.ch

Examples

list.historylabels(t=4)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(BBRecapture)
Loading required package: HI
Loading required package: locfit
locfit 1.5-9.1 	 2013-03-22
Loading required package: lme4
Loading required package: Matrix
Loading required package: secr
This is secr 2.10.3. For overview type ?secr
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/BBRecapture/list.historylabels.Rd_%03d_medium.png", width=480, height=480)
> ### Name: list.historylabels
> ### Title: List all the observable partial capture histories
> ### Aliases: list.historylabels
> 
> ### ** Examples
> 
> list.historylabels(t=4)
[[1]]
[1] ""

$V1
[1] "0"

$V2
[1] "1"

$V1
[1] "00"

$V2
[1] "10"

$V3
[1] "01"

$V4
[1] "11"

$V1
[1] "000"

$V2
[1] "100"

$V3
[1] "010"

$V4
[1] "110"

$V5
[1] "001"

$V6
[1] "101"

$V7
[1] "011"

$V8
[1] "111"

> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>