Last data update: 2014.03.03

R: Partial Capture Histories from a Binary Data Matrix.
pchR Documentation

Partial Capture Histories from a Binary Data Matrix.

Description

pch is used to obtain all the observed partial capture histories corresponding to an observed binary data matrix.

Usage

pch(data.matrix)

Arguments

data.matrix

a binary data matrix

Value

pch returns a matrix of mode "character" where each element represents the partial capture history associated to the respective element of the input binary data matrix.

Author(s)

Danilo Alunni Fegatelli and Luca Tardella

See Also

BBRecap.custom.part and LBRecap.custom.part

Examples

data(greatcopper) # load greatcopper data
pch(greatcopper)

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/pch.Rd_%03d_medium.png", width=480, height=480)
> ### Name: pch
> ### Title: Partial Capture Histories from a Binary Data Matrix.
> ### Aliases: pch
> ### Keywords: Datasets
> 
> ### ** Examples
> 
> data(greatcopper) # load greatcopper data
> pch(greatcopper)
      [,1] [,2] [,3] [,4]  [,5]   [,6]    [,7]     [,8]     
 [1,] ""   "0"  "00" "000" "0000" "00000" "000000" "0000000"
 [2,] ""   "0"  "00" "000" "0000" "00000" "000000" "0000000"
 [3,] ""   "0"  "00" "000" "0000" "00000" "000000" "0000000"
 [4,] ""   "0"  "00" "000" "0000" "00000" "000000" "0000001"
 [5,] ""   "0"  "00" "000" "0000" "00000" "000000" "0000001"
 [6,] ""   "0"  "00" "000" "0000" "00000" "000000" "0000001"
 [7,] ""   "0"  "00" "000" "0000" "00000" "000001" "0000010"
 [8,] ""   "0"  "00" "000" "0000" "00000" "000001" "0000010"
 [9,] ""   "0"  "00" "000" "0000" "00000" "000001" "0000010"
[10,] ""   "0"  "00" "000" "0000" "00000" "000001" "0000010"
[11,] ""   "0"  "00" "000" "0000" "00001" "000010" "0000100"
[12,] ""   "0"  "00" "000" "0000" "00001" "000010" "0000100"
[13,] ""   "0"  "00" "000" "0000" "00001" "000010" "0000100"
[14,] ""   "0"  "00" "000" "0000" "00001" "000010" "0000100"
[15,] ""   "0"  "00" "000" "0001" "00010" "000100" "0001000"
[16,] ""   "0"  "00" "000" "0001" "00010" "000100" "0001000"
[17,] ""   "0"  "00" "000" "0001" "00010" "000100" "0001000"
[18,] ""   "0"  "00" "001" "0010" "00100" "001000" "0010000"
[19,] ""   "0"  "00" "001" "0010" "00100" "001000" "0010000"
[20,] ""   "0"  "00" "001" "0010" "00100" "001000" "0010000"
[21,] ""   "0"  "00" "001" "0010" "00100" "001000" "0010000"
[22,] ""   "0"  "01" "010" "0100" "01000" "010000" "0100000"
[23,] ""   "0"  "01" "010" "0100" "01000" "010000" "0100000"
[24,] ""   "0"  "01" "010" "0100" "01000" "010000" "0100000"
[25,] ""   "0"  "01" "010" "0100" "01000" "010000" "0100000"
[26,] ""   "0"  "01" "010" "0100" "01000" "010000" "0100000"
[27,] ""   "1"  "10" "100" "1000" "10000" "100000" "1000000"
[28,] ""   "1"  "10" "100" "1000" "10000" "100000" "1000000"
[29,] ""   "1"  "10" "100" "1000" "10000" "100000" "1000000"
[30,] ""   "1"  "10" "100" "1000" "10000" "100000" "1000000"
[31,] ""   "1"  "10" "100" "1000" "10000" "100000" "1000000"
[32,] ""   "0"  "00" "000" "0000" "00000" "000000" "0000001"
[33,] ""   "0"  "00" "000" "0000" "00001" "000010" "0000100"
[34,] ""   "0"  "00" "000" "0000" "00001" "000011" "0000110"
[35,] ""   "0"  "00" "000" "0001" "00010" "000101" "0001010"
[36,] ""   "0"  "00" "000" "0001" "00010" "000101" "0001010"
[37,] ""   "0"  "00" "000" "0001" "00011" "000110" "0001100"
[38,] ""   "0"  "01" "010" "0100" "01000" "010000" "0100001"
[39,] ""   "0"  "01" "011" "0110" "01100" "011000" "0110000"
[40,] ""   "1"  "11" "110" "1100" "11000" "110000" "1100000"
[41,] ""   "0"  "01" "011" "0110" "01101" "011010" "0110100"
[42,] ""   "1"  "11" "111" "1110" "11100" "111000" "1110000"
[43,] ""   "0"  "01" "010" "0101" "01010" "010101" "0101011"
[44,] ""   "0"  "01" "011" "0111" "01111" "011110" "0111101"
[45,] ""   "1"  "11" "111" "1111" "11111" "111111" "1111110"
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>